02.02.2014, 12:21
Look at: /hotdogs command , it will appear an aditional message that say that the player is not in a car even if he is
Anyway good job..
You should put an else:
pawn Code:
if (strcmp("/hotdogs", cmdtext, true) == 0)
{
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 588)
{
HotDog[playerid] = 1;
new name[MAX_PLAYER_NAME], string[256];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "{0000FF}[RgX:INFO]{FF0000}%s {FFFFFF}is now a Hotdog Delivery.", name );
SendClientMessageToAll(-1, string);
SetPlayerCheckpoint(playerid, 804.1773,-1455.8715,13.1253,10);
SendClientMessage(playerid, -1,"{00FFFF}Job{FFFFFF}: Follow the red markers");
return 1;
}
SendClientMessage(playerid, -1,"{CE0000}You have to be on a Hotdogs car to start the job!");
}
return 0;
}
You should put an else:
pawn Code:
else SendClientMessage(playerid, -1,"{CE0000}You have to be in a Hotdogs car to start the job!");