OnPlayerVehicleDeath Problams..
#3

Quote:
Originally Posted by ikarus❶❸❸❼
pawn Код:
public OnVehicleDeath(vehicleid, killerid)
{
 
        new Float:x, Float:y, Float:z;
        SetPlayerHealth(playerid, 0.0);
        DestroyVehicle(vehicleid);
        GetPlayerPos(playerid,x, y, z);
        CreateExplosion(x, y , z, 0, 10);
    }
    return 1;
}
Not working. There is no playerid in the parameters for the function.

If you only want yourself to blow up, you can just get into the car? You could try with the 'killerid' to blow up or go with a playerToPoint() check to see if your player is near the car. Getting the playerid itself, however, is not possible since OnVehicleDeath() does not have a parameter 'playerid'.

Greetings!

ps. Just adding 'playerid' in there is not going to work. It will just get id 0
Reply


Messages In This Thread
OnPlayerVehicleDeath Problams.. - by Lorenc_ - 12.05.2010, 10:22
Re: OnPlayerVehicleDeath Problams.. - by [MWR]Blood - 12.05.2010, 10:29
Re: OnPlayerVehicleDeath Problams.. - by mamorunl - 12.05.2010, 10:50
Re: OnPlayerVehicleDeath Problams.. - by Lorenc_ - 12.05.2010, 10:54
Re: OnPlayerVehicleDeath Problams.. - by nakashor - 12.05.2010, 12:16
Re: OnPlayerVehicleDeath Problams.. - by Lorenc_ - 12.05.2010, 21:47
Re: OnPlayerVehicleDeath Problams.. - by CuervO - 13.05.2010, 00:21
Re: OnPlayerVehicleDeath Problams.. - by Lorenc_ - 13.05.2010, 06:20

Forum Jump:


Users browsing this thread: 2 Guest(s)