Timer in command - Help
#4

When I prison player, and when he/she write /time, that it shows how are they much jail to them ...

Код:
CMD:time(playerid, params[])
{
	new Sati, Min, Sec, string[128];
	gettime(Sati, Min, Sec);
	format(string, sizeof(string), "Now is: %i hours, %i minutes  %i seconds.", Sati, Min, Sec);
	SendClientMessage(playerid, COLOR_GREEN, string);
	return 1;
}
Код:
public Unjail(playerid) {
	new string[128], ReturnName[MAX_PLAYER_NAME];
	GetPlayerName(playerid, ReturnName, sizeof(ReturnName));
	format(string, sizeof(string), "You are on freedom");
	SendClientMessage(playerid, COLOR_RED, string);
	Jailed[playerid] = 0;
	SetPlayerInterior(playerid, 0);
	SetPlayerVirtualWorld(playerid, 0);
	SpawnPlayer(playerid);
	SetPlayerHealth(playerid, 100);
	KillTimer(JailTimer[playerid]);
	return 1;
}
sorry for my bad english
Reply


Messages In This Thread
Timer in command - Help - by FL3GM4 - 04.01.2013, 19:02
Re: Timer in command - Help - by FL3GM4 - 04.01.2013, 19:49
Re: Timer in command - Help - by RedCrossER - 04.01.2013, 19:53
Re: Timer in command - Help - by FL3GM4 - 04.01.2013, 19:58
Re: Timer in command - Help - by RedCrossER - 04.01.2013, 20:28
Re: Timer in command - Help - by FL3GM4 - 04.01.2013, 20:37
Re: Timer in command - Help - by RedCrossER - 04.01.2013, 20:42

Forum Jump:


Users browsing this thread: 2 Guest(s)