12.09.2009, 15:01
It's not hard to work around things like the bonuses, like, here's a few things I just created to save you all a bit of time:
Of course it needs editing, but it may be of use to you.
pawn Код:
new vehiclemodel, armour, health, shotgun;
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
new string[120];
vehiclemodel = GetVehicleModel(vehicleid);
if(GetPlayerWeapon(playerid) == 25)
{
shotgun = 1;
}
if(vehiclemodel == 416)
{
health = GetPlayerHealth(playerid);
}
else if(vehiclemodel == 427)
{
armour = GetPlayerArmour(playerid);
}
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(lastcar == 416 && newstate == 1 && oldstate == 2)
{
SetPlayerHealth(playerid, health);
}
if(lastcar == 427 && newstate == 1 && oldstate == 2)
{
SetPlayerArmour(playerid, health);
}
if(lastcar == 596 && newstate == 1 && oldstate == 2)
{
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 25, 99999);
}
}