Witam jak zrobi? czat frakcyjny na np /f [text] kiedy to wpiszemy w b?dac frkacji policji to policja tylko widzi nasza wiadomosc wiadomo?? jak to zrobi? za pomoc dam
Ten "plik" jest wbudowany w Struktur? MTA wi?c nie jest instalowany tylko dla serweru.
Mo?esz wszystkie skrypty wy??czy? a chat zostanie wi?c musisz sam sobie napisa? ten skrypt.
Podpis
[you]
, Sprawdź pierwszy serwer Roleplay, stawiający duży nacisk na grę In Character!
www.lss-rp.pl
Witam otoz napisalem taki skrypt ale on nie dziala moze ktos powiedziec lub poprawic co jest zle
-------------------------------------------------------------------------------------------------------
local function playerChatTeam(message, messageType)
local playerName = getPlayerName ( source )
if messageType == 2 then --Global (main) chat
cancelEvent()
local playerTeam = getPlayerTeam(playerName)
local teamMates = getPlayersInTeam( source )
for index, teamMate in ipairs( teamMates )
local red, green, blue = getPlayerNametagColor(source)
outputChatBox("(Radio) "..getPlayerName(source)..": "..message, root, red, green, blue, true )
outputServerLog("(Radio): "..getPlayerName(source)..": "..message)--NOTE: Beacuse we cancelled the onPlayerChat event, we need to log chat manually.
end
end
end
end
addEventHandler("onPlayerChat", root, playerChatTeam)
[ Dodano: 2012-02-11, 15:18 ]
Brany Przyklad z mtasa wiki
Witam ot?? pojawi? si? nowy problem ze wiadomo?? si? 2 razy pojawia jak zrobi? ?eby tylko raz si? pojawi?a za pomoc daje drugie
local function playerChatTeam(message, messageType,playerName)
local playerName = getPlayerName ( source )
if messageType == 2 then --Global (main) chat
cancelEvent()
local playerTeam = getPlayerTeam(source)
local teamMates = getPlayersInTeam( playerTeam )
for index, teamMate in ipairs( teamMates ) do
local red, green, blue = getPlayerNametagColor(source)
outputChatBox("(Radio) "..getPlayerName(source)..": "..message, root, red, green, blue, true )
outputServerLog("(Radio): "..getPlayerName(source)..": "..message)
end
end
end
addEventHandler("onPlayerChat", root, playerChatTeam)
[ Dodano: 2012-02-11, 21:26 ]
Przepraszam to nie spam poradzilem sobie dam SKRYPT JESLI KTOS CHCE
local function playerChatTeam(message, messageType,playerName)
local playerName = getPlayerName ( source )
if messageType == 2 then --Global (main) chat
cancelEvent()
local playerTeam = getPlayerTeam(source)
local teamMates = getPlayersInTeam( playerTeam )
for index, teamMate in ipairs( teamMates ) do
local red, green, blue = getPlayerNametagColor(source)
outputChatBox("(Radio) "..getPlayerName(source)..": "..message,teamMate,red, green,blue,true)
outputServerLog("(Radio): "..getPlayerName(source)..": "..message)
end
end
end
addEventHandler("onPlayerChat", root, playerChatTeam)
Nie możesz pisać nowych tematów Nie możesz odpowiadać w tematach Nie możesz zmieniać swoich postów Nie możesz usuwać swoich postów Nie możesz głosować w ankietach