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

Quote:
Originally Posted by ChristolisTV
Посмотреть сообщение
@BloodyRP

I want when I kill someone with drive-by. And exploding his car not killing him.
Quote:
Originally Posted by ChristolisTV
Посмотреть сообщение
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
Cant understand how u want to kill drive-by when both in a vehicles, but okay:

PHP код:
public OnPlayerDeath(playerid,killerid,reason)
{
    if(
killerid != INVALID_PLAYER_ID)
    {
        if(
GetPlayerState(killerid) == PLAYER_STATE_DRIVER)
        {
            
SendClientMessage(killerid, -1"{FF6000}[Congratulations]:{FFFFFF} You killed someone!");
            
GameTextForPlayer(playerid"~r~ DEAD!",20003);
            
PlayerPlaySound(killerid11490.00.00.0);
            if(
IsPlayerInAnyVehicle(playerid)) DestroyVehicle(GetPlayerVehicleID(playerid));
        }
    }
    return 
true;

Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)