[HELP] command /quit
#4

I wonder how he tested this?

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;
}
Yes, you need to change the CMD:quit to something else.
Reply


Messages In This Thread
[HELP] command /quit - by Luca12 - 22.05.2014, 10:03
Re: [HELP] command /quit - by DaniceMcHarley - 22.05.2014, 10:41
Re: [HELP] command /quit - by Stanford - 22.05.2014, 10:47
Re: [HELP] command /quit - by Threshold - 22.05.2014, 11:03
Re: [HELP] command /quit - by Luca12 - 22.05.2014, 11:07
Re: [HELP] command /quit - by Threshold - 22.05.2014, 11:59
Re: [HELP] command /quit - by Konstantinos - 22.05.2014, 12:14
Re: [HELP] command /quit - by Threshold - 24.05.2014, 05:52
Re: [HELP] command /quit - by Youssef214 - 24.05.2014, 06:38
Re: [HELP] command /quit - by JFF - 24.05.2014, 06:45

Forum Jump:


Users browsing this thread: 2 Guest(s)