07.08.2013, 07:34
please help me,
I would like to add a time to cmd /quitjob, given time after 5 times paycheck.
Sorry my bad english.
Thanks before
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;
}
Thanks before