08.03.2014, 08:00
Код:
if (strcmp("/pizza", cmdtext, true, 10) == 0) { if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 44 { PizzaJob[playerid] = 1; new nname[MAX_PLAYER_NAME], sstring[48]; GetPlayerName(playerid, nname, sizeof(nname)); format(sstring, sizeof(sstring), "* %s is now a Pizzaboy.", nname ); SendClientMessageToAll(COLOR_YELLOW, sstring); 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!"); }