[HELP] Anti Driveby
#2

I believe you should tell the killer (killerid), not the one who died.

playerid = the one who died
killerid = the one who killed someone

pawn Код:
#include <a_samp>

public OnPlayerDeath(playerid, killerid, reason)
{
    if(GetPlayerState(killerid) == 2)
    {
        if(!IsPlayerInAnyVehicle(killerid))
        {
            new name[MAX_PLAYER_NAME], string[44];
            GetPlayerName(killerid, name, sizeof(name));
            format(string, sizeof(string), "%s(%d) do NOT driveby",name ,killerid);
            SendClientMessageToAll(0xFFC4E0AA, string);
            return 1;
        }
    }
    return 1;
}
Reply


Messages In This Thread
[HELP] Anti Driveby + Mute Bug - by Larsey123IsMe - 14.12.2010, 20:31
Re: [HELP] Anti Driveby - by iFriSki - 14.12.2010, 20:34
Re: [HELP] Anti Driveby - by Larsey123IsMe - 14.12.2010, 20:41
Re: [HELP] Anti Driveby - by Retardedwolf - 14.12.2010, 20:52
Re: [HELP] Anti Driveby - by Larsey123IsMe - 14.12.2010, 20:54

Forum Jump:


Users browsing this thread: 1 Guest(s)