22.05.2014, 11:03
I wonder how he tested this?
Yes, you need to change the CMD:quit to something else.
pawn Код:
CMD:quit(playerid,params[])
{
if(gPlayerLogged[playerid] != 1) return SCM(playerid,COLOR_GRAD2, "{FFFFFF}[{F81414}G-Protect{FFFFFF}] {C3C3C3}You are not logged in!");
if(!PlayerInfo[playerid][Job]) return SCM(playerid, COLOR_GRAD2, "{F81414}(Odbijeno!) {C3C3C3}You can't quit when you have no job!");
if(0 < PlayerInfo[playerid][JobContract] < 5) return SCMF(playerid, SVIJETLOPLAVA,"You can't quit, you have only done %d hours of the 5-hour job contract!",PlayerInfo[playerid][JobContract]);
PlayerInfo[playerid][Job] = 0;
PlayerInfo[playerid][JobContract] = 0;
SCM(playerid, COLOR_YELLOW, "* You have quit from job.");
return 1;
}