Time stamp
#1

i don't understand tutorial for time stamp.
How to make if player not typed /rudnik command 2hours server give him quitjob ??

Here is the command

Код:
YCMD:rudnik(playerid, params[], help)
{
    #pragma unused params
	if(help) return SCM(playerid, COLOR_GREY, "Not supported");
	
    if(PlayerInfo[playerid][pJob] == 25)
	{
		if(UzeoOpremu[playerid] == 0) return SCM(playerid, COLOR_GREY, "Morate prvo uzeti opremu u kucici na vrhu rudnika!");
		if(IsPlayerInRangeOfPoint(playerid, 350, 604.7141,867.4781,-40.2878))
		{
			if(NaPoslu[playerid] == 1) return SCM(playerid, COLOR_WHITE, "** Vec ste na poslu.");
			SetPlayerCheckpoint(playerid, 551.3589,852.8019,-42.5268, 5.0);
			CP[playerid] = 2;
			NaPoslu[playerid] = 1;
			SCM(playerid, COLOR_WHITE, "Idi do CheckPoint-a i pocni da kopas");
		}
	}
	else SCM(playerid, COLOR_GRAD1, "{EA0C0C}[ERROR]{FFFFFF}Moras biti rudar da bi mogao raditi u rudniku!");
	return 1;
}
Tutorial from there:https://sampforum.blast.hk/showthread.php?tid=254915
I don't understand that tutorial clearly,because english is not my mother language.
Reply


Messages In This Thread
Time stamp - by bigboy81 - 12.01.2015, 02:06
Re: Time stamp - by DaniceMcHarley - 12.01.2015, 07:47
Re: Time stamp - by bigboy81 - 12.01.2015, 09:06
Re: Time stamp - by HazardouS - 12.01.2015, 09:18
Re: Time stamp - by bigboy81 - 12.01.2015, 10:26
Re: Time stamp - by bigboy81 - 12.01.2015, 22:32
Re: Time stamp - by bigboy81 - 13.01.2015, 12:11
Re: Time stamp - by bigboy81 - 13.01.2015, 15:50

Forum Jump:


Users browsing this thread: 3 Guest(s)