[Help] paycheck for /quitjob
#1

please help me,
I would like to add a time to cmd /quitjob, given time after 5 times paycheck.

pawn Код:
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, "[Phone] Stranger Says : Alright Man - Was nice to Work With you , Hope to see you Later");
                PlayerInfo[playerid][pJob] = 0;
            }
            else
            {
                SendClientMessage(playerid, COLOR_GREY, "   You don't have a Job to quit !");
            }
        }
        return 1;
    }
Sorry my bad english.
Thanks before
Reply
#2

dumb
Reply
#3

Quote:

given time after 5 times paycheck.

Please explain this?
Reply
#4

Quote:
Originally Posted by BullseyeHawk
Посмотреть сообщение
Please explain this?
so, /quitjob allowed if it receives 5 ​​times the paycheck.
Reply
#5

dumb
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)