/quitjob timer ? [HELP] - 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: /quitjob timer ? [HELP] (
/showthread.php?tid=296613)
/quitjob timer ? [HELP] -
Thedya - 12.11.2011
hi everyone,
how can i add timer (with logout/login registration) ? o this function.
I just wanna do to functions work that : ' you cant quit from you job, last: 6 hours.' so i want to players can join mod's jobs every 6 hours.
Sorry for my english..
Код:
if(strcmp(cmd, "/quitjob", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pJob] > 1)
{
{
{
SendClientMessage(playerid, COLOR_GREEN, "* You've quited your job successfully");
PlayerInfo[playerid][pJob] = 0;
PlayerInfo[playerid][pChar] = 0;
PlayerInfo[playerid][pContractTime] = 0;
}
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " You don't even have a Job !");
}
}//not connected
return 1;
}
Re: /quitjob timer ? [HELP] -
jiwan - 12.11.2011
try >>>>
https://sampwiki.blast.hk/wiki/SetTimer
Re: /quitjob timer ? [HELP] -
Thedya - 12.11.2011
But in this moment, if player log out timer will be cancel ?
With this information ? (wiki )