Chcia?bym wam udost?pni? frakcje kt?re robi?em sam w 85% bo te 15 pomaga? troch? PanMaszyna, bo musia? pom?c bo osoba bo zalogowaniu nie pojawia?a si? w teamie. Ale teraz oczywi?cie wszystko dzia?a Korzystajcie, oczywi?cie je?li mo?na dawajcie
I w ACL uzupe?nijcie, ?e nale?ycie do danej frakcji
Jest to jeden z moich pierwszych skrypt?w
Znajduj? si? tutaj frakcje taki jak: Policja, Pogotowie, Taxi, PSP (Pa?stwowa Stra? Po?arna), OSP (Ochotnicza Stra? Po?arna), oraz Pomoc Drogowa
[code]
function Chat(message, msgtype)
local Gracz = getPlayerName(source)
if (msgtype == 0) then
cancelEvent()
local red, green, blue = getPlayerNametagColor(source)
outputChatBox(""..Gracz..": "..message, root, red, green, blue, true)
end
end
addEventHandler("onPlayerChat", root, Chat)
Cywile = createTeam ( "Cywile", 255, 255, 255 )
politeamx = createTeam ( "Policja", 0, 100, 255 )
Pogoteamx = createTeam ( "Pogotowie", 20, 220, 220 )
PDteamx = createTeam ( "PomocDrogowa", 200, 30, 230 )
Taxiteamx = createTeam ( "Taxi", 255, 200, 0 )
OSPteamx = createTeam ( "OSP", 250, 0, 0 )
PSPteamx = createTeam ( "PSP", 250, 0, 0 )
function Policja ( thePlayer )
local playerName = getAccountName ( getPlayerAccount ( thePlayer ) )
if isObjectInACLGroup ( "user." .. playerName, aclGetGroup ( "Policja" ) ) then
setPlayerTeam ( ... |