CMD:tod problem.
#9

Alright let me try...

Edit: It's not working By the way, i have this wristwatch command
Код:
CMD:wristwatch(playerid, params[])
{
	if(PlayerInfo[playerid][pWristwatch] > 0)
	{
		new string[128];
		if(GetPVarInt(playerid, "wristwatchonoff") == 0)
		{
			SetPVarInt(playerid, "wristwatchonoff", 1);
			new hour,minuite,second;
			gettime(hour,minuite,second);
			FixHour(hour);
			hour = shifthour;
			if(minuite < 10)
			{
				format(string, sizeof(string), "%d:0%d", hour, minuite);
			}
			else
			{
				format(string, sizeof(string), "%d:%d", hour, minuite);
			}
			TextDrawShowForPlayer(playerid, WristWatch);
			format(string, sizeof(string), "* %s turns on their wristwatch.", GetPlayerNameEx(playerid));
			ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
		}
		else
		{
			KillTimer(GetPVarInt(playerid, "wristwatchtimer"));
			TextDrawHideForPlayer(playerid, WristWatch);
			DeletePVar(playerid, "wristwatchonoff");
			format(string, sizeof(string), "* %s turns off their wristwatch.", GetPlayerNameEx(playerid));
			ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
		}
	}
	else
	{
		SendClientMessageEx(playerid, COLOR_GRAD1, "You don't have a wristwatch!");
	}
	return 1;
}
Reply


Messages In This Thread
CMD:tod problem. - by 0B3Y - 26.07.2014, 00:25
Re: CMD:tod problem. - by Blademaster680 - 26.07.2014, 00:33
Re: CMD:tod problem. - by 0B3Y - 26.07.2014, 00:37
Re: CMD:tod problem. - by Blademaster680 - 26.07.2014, 00:44
Re: CMD:tod problem. - by 0B3Y - 26.07.2014, 00:54
Re: CMD:tod problem. - by Blademaster680 - 26.07.2014, 01:06
Re: CMD:tod problem. - by 0B3Y - 26.07.2014, 01:11
Re: CMD:tod problem. - by Blademaster680 - 26.07.2014, 01:14
Re: CMD:tod problem. - by 0B3Y - 26.07.2014, 01:18
Re: CMD:tod problem. - by Blademaster680 - 26.07.2014, 01:28

Forum Jump:


Users browsing this thread: 1 Guest(s)