10.02.2009, 13:54
how to make this fakekill proof:
pawn Код:
new pname[24];
new kname[24];
new string[128];
GetPlayerWeapon(killerid);
if(GetPlayerWeapon(killerid) == 38 || == 37 || reason == 36 || reason == 35 || reason == 34 || reason == 33 || reason == 32 || reason == 31 || reason == 30 || reason == 29 || reason == 28 || reason == 27 || reason == 26 || reason == 25 || reason == 24 || reason == 23 || reason == 22 || reason == 9)
{
GetPlayerName(playerid, pname, sizeof(pname));
GetPlayerName(killerid, kname, sizeof(kname));
format(string, sizeof(string), "%s get kicked cause he killed %s with a cheating weapon. BYE BYE!!!", kname, pname);
SendClientMessageToAll(RED, string);
Kick(killerid);
}
// its under public OnPlayerDeath(playerid, killerid, reason)