-dodaje punkt
function Nazwa_funkcji ( thePlayer, command )
local team = getTeamFromName ( "Nazwa_team" )
local gracz = getRandomPlayer ()
local taxit = getPlayersInTeam ( team )
local ile = countPlayersInTeam ( team )
if ile == 0 then
outputChatBox ( "Aktulnie nie ma pracownikow Nazwa_team na serwerze. Przepraszamy!", thePlayer, 255, 0, 0, false )
else
outputChatBox ("Nazwa_team jest juz w drodze", thePlayer, 255, 255, 0, false )
if getPlayerTeam ( gracz ) == team then
blipNazwa_team = createBlipAttachedTo ( thePlayer, 11, 1, 255, 0, 0, 0, 0, 99999.0, taxit )
outputChatBox ("Masz klienta! Patrz na mapke!", 255, 255, 0, false )
end
end
end
addCommandHandler ( "Cmd", Nazwa_funkcji )
-odwo?uje pomoc(gracza)
function Nazwa_funkcji ( thePlayer, command )
local team = getTeamFromName ( "Nazwa_team" )
local gracz = getRandomPlayer ()
local taxit = getPlayersInTeam ( team )
outputChatBox ("Nazwa_team odwolana!", thePlayer, 255, 255, 0, false )
destroyElement ( blipNazwa_team )
if getPlayerTeam ( gracz ) == team then
outputChatBox ("Twoj klient odwolal Nazwa_team .", 255, 255, 0, false )
end
end
addCommandHandler ( "Cmd", Nazwa_funkcji )
-usuwa ka?dego
function Nazwa_funkcji ( )
local team = getTeamFromName ( "Nazwa_team " )
local gracz = getRandomPlayer ()
local taxit = getPlayersInTeam ( team )
if getPlayerTeam ( gracz ) == team then
destroyElement ( blipNazwa_team )
outputChatBox ( "Usunieto punkty na mapie.", taxit, 255, 255, 255, false )
end
end
addCommandHandler ( "CMd", Nazwa_funkcji )