Job Command
#6

Код:
if (strcmp("/startwork", cmdtext, true, 10) == 0)
    {
        if(global_array_for_players[playerid][Job]==Pizzaboy) 
        {
            SetPlayerCheckpoint(playerid, Float:x, Float:y, Float:z, Float:size);
            return 1;
        }
    }
    return 0;
}
And if you want more jobs, you can do like this:

Код:
if (strcmp("/startwork", cmdtext, true, 10) == 0)
    {
        if(global_array_for_players[playerid][Job]==Pizzaboy) 
        {
            SetPlayerCheckpoint(playerid, Float:x, Float:y, Float:z, Float:size);
            return 1;
        } 
        else if(global_array_for_players[playerid][Job]==Taxi) 
        {
            SetPlayerCheckpoint(playerid, Float:x, Float:y, Float:z, Float:size);
            return 1;
        }
    }
    return 0;
}
Reply


Messages In This Thread
Job Command - by DanBike - 21.07.2011, 11:27
Re: Job Command - by RSX - 21.07.2011, 11:30
Re: Job Command - by DanBike - 21.07.2011, 11:40
Re: Job Command - by RSX - 21.07.2011, 11:45
Re: Job Command - by DanBike - 21.07.2011, 13:19
Re: Job Command - by Niixie - 21.07.2011, 13:26
Re: Job Command - by DanBike - 21.07.2011, 13:32
Re: Job Command - by RSX - 21.07.2011, 14:48
Re: Job Command - by DanBike - 21.07.2011, 15:16
Re: Job Command - by Niixie - 27.07.2011, 15:08

Forum Jump:


Users browsing this thread: 2 Guest(s)