08.03.2014, 09:01
pawn Код:
if (strcmp("/pizza", cmdtext, true, 10) == 0)
{
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 44)
{
PizzaJob[playerid] = 1;
new name22[MAX_PLAYER_NAME], string22[48];
GetPlayerName(playerid, name22, sizeof(name22));
format(string22, sizeof(string22), "* %s is now a Pizzaboy.", name22 );
SendClientMessageToAll(COLOR_YELLOW, string22);
SetPlayerCheckpoint(playerid,2012.6134,-1729.3796,13.1536,10);
SendClientMessage(playerid,COLOR_YELLOW,"* Follow the red markers and you'll recieve money!");
return 1;
}
SendClientMessage(playerid, COLOR_RED,"You have to be on a pizza bike to start the job!");
}