13.09.2009, 15:36
Im working on a anti-teamkill.. and so.. yeah.
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?
Код:
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;
}

