08.12.2013, 20:32
pawn Код:
// Anti Fake-Killing => Alessio
if(IsPlayerConnectedEx(playerid))
{
new playername[MAX_PLAYER_NAME];
new killername[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername, sizeof(playername));
GetPlayerName(killerid, killername, sizeof(killername));
if(IsPlayerStreamedIn(playerid, killerid))
{ // No need for a VW check, you don't stream in to other clients if they're in different VWs to you (presumably...)
if(GetPlayerInterior(playerid) == GetPlayerInterior(killerid))
{
if(GetPlayerWeapon(killerid) == reason)
{
printf("%s(ID:%d) l-a omorat pe %s(ID:%d) cu %s . ", killername,killerid,playername,playerid,reason);
}
}
}
else
{
new str[64];
format(str, sizeof(str), "%s(ID:%d) a primit kick pentru fake-killing.", killername, killerid);
SendAdminBroadcast(str);
SendClientMessage(killerid, COLOR_LIGHTRED, "Te pupa Alessio!");
SetTimerEx("KickPublic", 1000, 0, "d", killerid);
}
}