14.02.2014, 16:26
Код:
if(strcmp(cmd, "/quitjob", true) == 0) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pJob] > 0) { if(PlayerInfo[playerid][pJob] == 17 && CP[playerid] != 0) { CP[playerid] = 0; DisablePlayerCheckpoint(playerid); } SendClientMessage(playerid, COLOR_WHITE, "Job quited succefully"); PlayerInfo[playerid][pJob] = 0; } else { SendClientMessage(playerid, COLOR_GREY, "You have no job"); } } return 1; }