/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


Messages In This Thread
/quitjob timer ? [HELP] - by Thedya - 12.11.2011, 11:12
Re: /quitjob timer ? [HELP] - by jiwan - 12.11.2011, 11:31
Re: /quitjob timer ? [HELP] - by Thedya - 12.11.2011, 12:32

Forum Jump:


Users browsing this thread: 1 Guest(s)