Anti carpark - helikill
#1

Hello

Can anyone script anti vehicle or anti carpark script

If player will carkill or helikill all the players will see in chat "Name has been punished [reason'helikill or carkill]
Reply
#2

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    new vehid = GetPlayerVehicleID(playerid); //Get's the vehicle ID
    new string[128];
   
    if(vehid > 487) //Mavetrick ID
    {
        SetPlayerHealth(killerid, 0); //Set's the killer with the heli to "0"
        GetPlayerName(playerid, string, sizeof(string));
        format(string, sizeof(string), "Player %s has been punished - (REASON): Heli kill");
        SendClientMessageToAll(0xFF2800FF, string); //Send's the message to all the players in the server
    }
    return 1;
}
For the anti-heli kill. Try it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)