Need another help - jail timer
#1

Im working on a anti-teamkill.. and so.. yeah.

Код:
public OnPlayerDeath(playerid,killerid,reason)
{
  SendDeathMessage(killerid, playerid, reason);
	if (GetPlayerColor(playerid) == GetPlayerColor(killerid))
	{
 		new name[MAX_PLAYER_NAME], string[128];
		GetPlayerName(killerid, name, sizeof(name));
		format(string, sizeof(string), ":: SERVER jailed %s for 1 minute. Reason: Team-killing! ::", name );
		SendClientMessageToAll(COLOR_GREEN, string);
 		SetPlayerInterior(killerid, 6);
  	SetPlayerPos(killerid,264.6288,77.5742,1001.0391);
   	SetCameraBehindPlayer(killerid);
   	SetTimer("tkjail",60000,false);
   	ResetPlayerWeapons(killerid);
		return 1;
 	}
At the top I got forward tkjail(), but i get bunches of errors when I try to unjail the dude again in a public! How to do?
Reply


Messages In This Thread
Need another help - jail timer - by Striker_Moe - 13.09.2009, 15:36
Re: Need another help - jail timer - by Striker_Moe - 13.09.2009, 16:31
Re: Need another help - jail timer - by Striker_Moe - 14.09.2009, 14:40
Re: Need another help - jail timer - by Calgon - 14.09.2009, 14:50
Re: Need another help - jail timer - by Clavius - 14.09.2009, 14:57
Re: Need another help - jail timer - by Striker_Moe - 14.09.2009, 16:57

Forum Jump:


Users browsing this thread: 1 Guest(s)