[Help] paycheck for /quitjob - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [Help] paycheck for /quitjob (
/showthread.php?tid=456732)
[Help] paycheck for /quitjob -
Chu - 07.08.2013
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
Re: [Help] paycheck for /quitjob -
Chu - 08.08.2013
dumb
Re: [Help] paycheck for /quitjob -
BullseyeHawk - 08.08.2013
Quote:
given time after 5 times paycheck.
|
Please explain this?
Re: [Help] paycheck for /quitjob -
Chu - 12.08.2013
Quote:
Originally Posted by BullseyeHawk
Please explain this?
|
so, /quitjob allowed if it receives 5 times the paycheck.
Re: [Help] paycheck for /quitjob -
Chu - 13.08.2013
dumb