/quitjob timer ? [HELP]
#1

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;
	}
Reply
#2

try >>>> https://sampwiki.blast.hk/wiki/SetTimer
Reply
#3

But in this moment, if player log out timer will be cancel ?

With this information ? (wiki )
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)