16.04.2015, 15:30
Hello. I'am making my first job system and i need your help.
I made command "ruta" which turns bus driver,job,on. Now i need an example with checkpoints. When i enter first the second shows,and so on... I just need an example with few checkpoint because i really don't have idea how to do that. I know it is very easy but...
Here is a command "ruta":
I made command "ruta" which turns bus driver,job,on. Now i need an example with checkpoints. When i enter first the second shows,and so on... I just need an example with few checkpoint because i really don't have idea how to do that. I know it is very easy but...
Here is a command "ruta":
PHP код:
CMD:ruta(playerid,params[])
{
new Vozilo = GetPlayerVehicleID(playerid);
if(PlayerPosao[playerid][pID] != 1) return SendClientMessage(playerid,-1,""COLOR_CRVENA"Greska:{FFFFFF} Niste zaposleni kao vozac autobusa");
if(Vozilo != Autobus[0] || Vozilo != Autobus[1] || Vozilo != Autobus[2] || Vozilo != Autobus[3] || Vozilo != Autobus[4]) return SendClientMessage(playerid,-1,""COLOR_CRVENA"Greska:{FFFFFF} Ne nalazite se u autobusu");
if(Ruta[playerid] != 0) return SendClientMessage(playerid,-1,""COLOR_CRVENA"Greska:{FFFFFF} Vec ste zapoceli autobus rutu");
{
SendClientMessage(playerid,-1,""COLOR_WG"WG:{FFFFFF} Zapoceli ste autobus rutu. Molimo pratite oznake na mapi.");
SendClientMessage(playerid,-1,""COLOR_WG"WG:{FFFFFF} Ukoliko zelite prestati odradivati rutu -"COLOR_SIVA" /zaustavirutu");
Ruta[playerid] = 1;
}
return 1;
}