Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.

Wysłany: 2015-03-13, 16:45


Chrupek_PL







Wiek: 30
Na forum: 4112 dni
Posty: 2
Nick w MP: Chrupek_PL



Respekt: 50

Witam napisa?em skrypt i tak jak by dzia?a a nie dzia?a jak to co dzia?a :

- jak wpisze np. /ammo i nie ten frakcji to pisze ze frakcji nie ma

- komendy dzia?aj?

- jak wpisze np. /policja i policja jest pisze ze wezwanie zosta?o przyj?te

co nie dzia?a :

- wpisze np. /policja i policja jest to ona nie dostaje wiadomo?ci ze wezwa?em frakcje i nie pojawia si? blip gracza kt?ry wezwa? na mapie ani to ?e jak wpisa?em /usunpolicja to mi pisze Usuno?e? policje a policji nie pisze ze usuno?em policje

b??dy

http://zapodaj.net/e0b95c1d92772.png.html

kod

Kod:

function taxiCommand ( thePlayer, command )
local team = getTeamFromName ( "Taxi" )
local gracz = getRandomPlayer ()
local taxit = getPlayersInTeam ( team )
local ile = countPlayersInTeam ( team )
if ile == 0 then
outputChatBox ( "Aktulnie nie ma taksowkarzy na serwerze. Przepraszamy!", thePlayer, 255, 0, 0, false )
else
outputChatBox ("Taxi jest juz w drodze", thePlayer, 255, 255, 0, false )
--if getPlayerTeam ( gracz ) == team then
blip = createBlipAttachedTo ( thePlayer, 53, 1, 255, 0, 0, 0, 0, 99999.0, taxit )
outputChatBox ("Masz klienta! Patrz na mapke!", 255, 255, 0, false )
--end
end
end
addCommandHandler ( "taxi", taxiCommand )

function taxiCancelCommand ( thePlayer, command )
local team = getTeamFromName ( "Taxi" )
local gracz = getRandomPlayer ()
local taxit = getPlayersInTeam ( team )
outputChatBox ("Taxi odwolano", thePlayer, 255, 255, 0, false )
destroyElement ( blip )
if getPlayerTeam ( gracz ) == team then
outputChatBox ("Twoj klient odwolal taxi.", 255, 255, 0, false )
end
end
addCommandHandler ( "taxix", taxiCancelCommand )

function allTaxiCancelCommand ( )
local team = getTeamFromName ( "Taxi" )
local gracz = getRandomPlayer ()
local taxit = getPlayersInTeam ( team )
if getPlayerTeam ( gracz ) == team then
destroyElement ( blip )
outputChatBox ( "Usunieto punkty na mapie.", taxit, 255, 255, 255, false )
end
end
addCommandHandler ( "usuntaxi", allTaxiCancelCommand )

function pdCommand ( thePlayer, command )
local team = getTeamFromName ( "Pomoc Drogowa" )
local gracz = getRandomPlayer ()
local taxit = getPlayersInTeam ( team )
local ile = countPlayersInTeam ( team )
if ile == 0 then
outputChatBox ( "Aktulnie nie ma pracownikow Pomocy Drogowej na serwerze. Przepraszamy!", thePlayer, 255, 0, 0, false )
else
outputChatBox ("Pomoc Drogowa jest juz w drodze", thePlayer, 255, 255, 0, false )
if getPlayerTeam ( gracz ) == team then
blippd = 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 ( "pd", pdCommand )

function pdCancelCommand ( thePlayer, command )
local team = getTeamFromName ( "Pomoc Drogowa" )
local gracz = getRandomPlayer ()
local taxit = getPlayersInTeam ( team )
outputChatBox ("Pomoc Drogowa odwolana!", thePlayer, 255, 255, 0, false )
destroyElement ( blippd )
if getPlayerTeam ( gracz ) == team then
outputChatBox ("Twoj klient odwolal Pomoc Drogowa.", 255, 255, 0, false )
end
end
addCommandHandler ( "pdx", pdCancelCommand )

function allpdCancelCommand ( )
local team = getTeamFromName ( "Pomoc Drogowa" )
local gracz = getRandomPlayer ()
local taxit = getPlayersInTeam ( team )
if getPlayerTeam ( gracz ) == team then
destroyElement ( blippd )
outputChatBox ( "Usunieto punkty na mapie.", taxit, 255, 255, 255, false )
end
end
addCommandHandler ( "usunpd", allpdCancelCommand )

function pogoCommand ( thePlayer, command )
local team = getTeamFromName ( "Pogotowie" )
local gracz = getRandomPlayer ()
local taxit = getPlayersInTeam ( team )
local ile = countPlayersInTeam ( team )
if ile == 0 then
outputChatBox ( "Aktulnie nie ma medykow na serwerze. Przepraszamy!", thePlayer, 255, 0, 0, false )
else
outputChatBox ("Pogotowie jest juz w drodze.", thePlayer, 255, 255, 0, false )
if getPlayerTeam ( gracz ) == team then
blippogo = createBlipAttachedTo ( thePlayer, 19, 1, 255, 0, 0, 0, 0, 99999.0, taxit )
outputChatBox ("Masz klienta! Patrz na mapke!", 255, 255, 0, false )
end
end
end
addCommandHandler ( "pogotowie", pogoCommand )

function pogoCancelCommand ( thePlayer, command )
local team = getTeamFromName ( "Pogotowie" )
local gracz = getRandomPlayer ()
local taxit = getPlayersInTeam ( team )
outputChatBox ("Pogotowie odwolano", thePlayer, 255, 255, 0, false )
destroyElement ( blippogo )
if getPlayerTeam ( gracz ) == team then
outputChatBox ("Twoj klient odwolal Pogotowie.", 255, 255, 0, false )
end
end
addCommandHandler ( "pogotowiex", pogoCancelCommand )

function allpogoCancelCommand ( )
local team = getTeamFromName ( "Pogotowie" )
local gracz = getRandomPlayer ()
local taxit = getPlayersInTeam ( team )
if getPlayerTeam ( gracz ) == team then
destroyElement ( blippogo )
outputChatBox ( "Usunieto punkty na mapie.", taxit, 255, 255, 255, false )
end
end
addCommandHandler ( "usunpogo", allpogoCancelCommand )



function poliCommand ( thePlayer, command )
local team = getTeamFromName ( "Policja" )
local gracz = getRandomPlayer ()
local taxit = getPlayersInTeam ( team )
local ile = countPlayersInTeam ( team )
if ile == 0 then
outputChatBox ( "Aktulnie nie ma Pracownik󷠰olicji na serwerze. Przepraszamy!", thePlayer, 255, 0, 0, false )
else
outputChatBox ("Policja jest juz w drodze.", thePlayer, 255, 255, 0, false )
if getPlayerTeam ( gracz ) == team then
blippoli = createBlipAttachedTo ( thePlayer, 19, 1, 255, 0, 0, 0, 0, 99999.0, taxit )
outputChatBox ("Masz klienta! Patrz na mapke!", 255, 255, 0, false )
end
end
end
addCommandHandler ( "policja", poliCommand )

function poliCancelCommand ( thePlayer, command )
local team = getTeamFromName ( "Policja" )
local gracz = getRandomPlayer ()
local taxit = getPlayersInTeam ( team )
outputChatBox ("Gliny odwolane", thePlayer, 255, 255, 0, false )
destroyElement ( blippoli )
if getPlayerTeam ( gracz ) == team then
outputChatBox ("Twoj klient odwolal policjꮢ, 255, 255, 0, false )
end
end
addCommandHandler ( "policjax", poliCancelCommand )

function allpoliCancelCommand ( )
local team = getTeamFromName ( "Policja" )
local gracz = getRandomPlayer ()
local taxit = getPlayersInTeam ( team )
if getPlayerTeam ( gracz ) == team then
destroyElement ( blippoli )
outputChatBox ( "Usunieto punkty na mapie.", taxit, 255, 255, 255, false )
end
end
addCommandHandler ( "usunpolicja", allpoliCancelCommand )



function SalonCommand ( thePlayer, command )
local team = getTeamFromName ( "Salon" )
local gracz = getRandomPlayer ()
local taxit = getPlayersInTeam ( team )
local ile = countPlayersInTeam ( team )
if ile == 0 then
outputChatBox ( "Aktulnie nie ma salonu na serwerze. Przepraszamy!", thePlayer, 255, 0, 0, false )
else
outputChatBox ("Salon jest juz w drodze", thePlayer, 255, 255, 0, false )
--if getPlayerTeam ( gracz ) == team then
blip = createBlipAttachedTo ( thePlayer, 53, 1, 255, 0, 0, 0, 0, 99999.0, taxit )
outputChatBox ("Masz klienta! Patrz na mapke!", 255, 255, 0, false )
--end
end
end
addCommandHandler ( "salon", SalonCommand )

function SalonCancelCommand ( thePlayer, command )
local team = getTeamFromName ( "Salon" )
local gracz = getRandomPlayer ()
local taxit = getPlayersInTeam ( team )
outputChatBox ("Salon odwolano", thePlayer, 255, 255, 0, false )
destroyElement ( blip )
if getPlayerTeam ( gracz ) == team then
outputChatBox ("Twoj klient odwolal salon.", 255, 255, 0, false )
end
end
addCommandHandler ( "salonx", SalonCancelCommand )

function allSalonCancelCommand ( )
local team = getTeamFromName ( "Salon" )
local gracz = getRandomPlayer ()
local taxit = getPlayersInTeam ( team )
if getPlayerTeam ( gracz ) == team then
destroyElement ( blip )
outputChatBox ( "Usunieto punkty na mapie.", taxit, 255, 255, 255, false )
end
end
addCommandHandler ( "usunsalon", allSalonCancelCommand )



function AmmoCommand ( thePlayer, command )
local team = getTeamFromName ( "Ammonation" )
local gracz = getRandomPlayer ()
local taxit = getPlayersInTeam ( team )
local ile = countPlayersInTeam ( team )
if ile == 0 then
outputChatBox ( "Aktulnie nie ma ammo na serwerze. Przepraszamy!", thePlayer, 255, 0, 0, false )
else
outputChatBox ("Ammo jest juz w drodze", thePlayer, 255, 255, 0, false )
--if getPlayerTeam ( gracz ) == team then
blip = createBlipAttachedTo ( thePlayer, 53, 1, 255, 0, 0, 0, 0, 99999.0, taxit )
outputChatBox ("Masz klienta! Patrz na mapke!", 255, 255, 0, false )
--end
end
end
addCommandHandler ( "ammo", AmmoCommand )

function AmmoCancelCommand ( thePlayer, command )
local team = getTeamFromName ( "Ammonation" )
local gracz = getRandomPlayer ()
local taxit = getPlayersInTeam ( team )
outputChatBox ("Ammo odwolano", thePlayer, 255, 255, 0, false )
destroyElement ( blip )
if getPlayerTeam ( gracz ) == team then
outputChatBox ("Twoj klient odwolal ammo.", 255, 255, 0, false )
end
end
addCommandHandler ( "ammox", AmmoCancelCommand )

function allAmmoCancelCommand ( )
local team = getTeamFromName ( "Ammonation" )
local gracz = getRandomPlayer ()
local taxit = getPlayersInTeam ( team )
if getPlayerTeam ( gracz ) == team then
destroyElement ( blip )
outputChatBox ( "Usunieto punkty na mapie.", taxit, 255, 255, 255, false )
end
end
addCommandHandler ( "usunammo", allAmmoCancelCommand )


Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-03-13, 16:49


Chrupek_PL







Wiek: 30
Na forum: 4112 dni
Posty: 2
Nick w MP: Chrupek_PL



Respekt: 50

@up m?g? by? mi to dopisa? do tego skryptu bo jestem tak kiepski w lua ze z 2 dni to pisa?em z wiki?

Postaw piwo autorowi tego posta
 

 
Tagi: skrypt
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA » Skrypt Ten temat jest zablokowany bez możliwości zmiany postów lub pisania odpowiedzi

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
Dodaj temat do Ulubionych
Wersja do druku