Help with Checkpoint
#1

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":

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;

Reply


Messages In This Thread
Help with Checkpoint - by NoDi522 - 16.04.2015, 15:30
Respuesta: Help with Checkpoint - by JuanStone - 16.04.2015, 15:53

Forum Jump:


Users browsing this thread: 1 Guest(s)