.. well im trieng to fix the problem of heli kill , i need help making a pawno script , fs , code idk what a game mode addon . any thing that helps
. well what i whant it to do is kick the player after he does the first helli kill or something. if i remove the helis he could still spawn some with cheats so i need something t hat will kick him every time he kills with a heli . thanks and i hope someone smart can help me 
|
Originally Posted by backwardsman97
Why don't you try checking if the death reason equals helicopter blades and kick the killer?
|
|
Originally Posted by XeoN_13
not really , people can spawn helis . i know this from alot ALOT of cheaters , its called ( chea ts ) like s o b e it...
|
public OnPlayerDeath(playerid, killerid, reason)
{
if(reason == 50)
{
new name[24], str[128];
GetPlayerName(killerid, name, sizeof name);
format(str, sizeof str, " %s has been kicked for heli killing!", name);
SendClientMessageToAll(color, str);
SendClientMessage(killerid, color, " Do NOT heli kill!");
Kick(killerid);
}
return 1;
}
thanks! let me try it and ill reply if it worked..
public OnPlayerDeath(playerid, killerid, reason)
{
new playercash;
if(killerid == INVALID_PLAYER_ID) {
SendDeathMessage(INVALID_PLAYER_ID,playerid,reason);
ResetPlayerMoney(playerid);
} else {
SendDeathMessage(killerid,playerid,reason);
SetPlayerScore(killerid,GetPlayerScore(killerid)+1);
playercash = GetPlayerMoney(playerid);
if (playercash > 0) {
GivePlayerMoney(killerid, playercash);
ResetPlayerMoney(playerid);
new name[24], str[128];
GetPlayerName(killerid, name, sizeof name);
format(str, sizeof str, " %s has been kicked for heli killing!", name);
SendClientMessageToAll(COLOR_YELLOW, str);
SendClientMessage(killerid, COLOR_YELLOW, " Do NOT heli kill!");
Kick(killerid);
}
else
{
}
}
return 1;
}