24.06.2010, 08:02
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
if(gTeam[killerid] == gTeam[playerid])
{
SendClientMessage(killerid,0xAA3333AA,"You can't team kill,this is unfair,you are now frozen for 5 seconds.");
TogglePlayerControllable(killerid,0);
SetTimerEx("AA", 5000, 0, "i", killerid); //Teamkill
}
return 1;
}
public AA(playerid)
{
TogglePlayerControllable(playerid, 1);
SendClientMessage(playerid, 0xAA3333AA, "* You have been unfrozen!");
return 1;
}
pawn Код:
forward AA();