26.10.2014, 00:10
Sorry for the l8 reply, been busy :P, here you go:
[CODE]COMMAND:work(playerid, params[])
{
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xFFFFFFFF, "You are not in a vehicle!");
else
{
new Random=random(sizeof(random_destinations));
SendClientMessage(playerid, COLOR_BLUE, "You are now working, head to the RED checkpoint for payment!");
SetPlayerRaceCheckpoint(playerid,random_destinatio ns[Random][0],random_destinations[Random][1],random_destinations[Random][2]);
return 1;
}
return 0;
}[CODE/]
[CODE]COMMAND:work(playerid, params[])
{
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xFFFFFFFF, "You are not in a vehicle!");
else
{
new Random=random(sizeof(random_destinations));
SendClientMessage(playerid, COLOR_BLUE, "You are now working, head to the RED checkpoint for payment!");
SetPlayerRaceCheckpoint(playerid,random_destinatio ns[Random][0],random_destinations[Random][1],random_destinations[Random][2]);
return 1;
}
return 0;
}[CODE/]