24.06.2013, 06:57
Hmm..
Why is SendClientMessage after Kick(playerid)? If you want the text to show, then the SendClientMessage must be on top of Kick(playerid), like -;
This should more-of be as a snippet.. since the code is small and not actually is a filterscript.
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
if(GetPlayerTeam(killerid) == GetPlayerTeam(playerid))
{
Kick(killerid);
SendClientMessage(killerid, COLOR_GRAD1, "You've been kicked for killing a teammate !");
return 1;
}
}
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
if(GetPlayerTeam(killerid) == GetPlayerTeam(playerid))
{
SendClientMessage(killerid, COLOR_GRAD1, "You've been kicked for killing a teammate !");
Kick(killerid);
return 1;
}
}