Problem when a player dies in a vehicle (+1 REP)
#1

I am trying to create a derby gamemode but I have some errors that I can't fix! I want if a player kills another player and both are in a vehicle the killer will hear some sound and will recieve a client message. Any help please? I tried to create something but unluckily doesn't work.

PHP код:
public OnVehicleDeath(vehicleidkillerid)
{
    new 
pVictim[MAX_PLAYER_NAME];
       
GetPlayerName(vehicleid,pVictim,sizeof(pVictim));
        
PlayerPlaySound(killerid11490.00.00.0);
    
DestroyVehicle(vehicleid);
    return 
1;
}
public 
OnPlayerDeath(playeridkilleridreason)
{
    
SendClientMessage(killerid, -1"{FF6000}[Congratulations]:{FFFFFF} You killed someone!");
    
GameTextForPlayer(playerid"~r~ DEAD!",20003);
        
PlayerPlaySound(killerid11490.00.00.0);
    return 
1;

And don't forget the REP!
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)