Bugs/Suggestion
#10

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:

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);
    }
}
Of course it needs editing, but it may be of use to you.
Reply


Messages In This Thread
Bugs/Suggestion - by sk0t - 03.09.2009, 09:23
Re: Bugs/Suggestion - by [RO]Madalin2009 - 03.09.2009, 09:25
Re: Bugs/Suggestion - by BeckzyBoi - 03.09.2009, 10:26
Re: Bugs/Suggestion - by Balon - 12.09.2009, 13:48
Re: Bugs/Suggestion - by _Vortex - 12.09.2009, 13:51
Re: Bugs/Suggestion - by Sergei - 12.09.2009, 13:52
Re: Bugs/Suggestion - by _Vortex - 12.09.2009, 13:56
Re: Bugs/Suggestion - by dre$tA - 12.09.2009, 13:59
Re: Bugs/Suggestion - by Sergei - 12.09.2009, 14:14
Re: Bugs/Suggestion - by Calgon - 12.09.2009, 15:01
Re: Bugs/Suggestion - by Andom - 12.09.2009, 15:25
Re: Bugs/Suggestion - by Adil - 12.09.2009, 18:02
Re: Bugs/Suggestion - by Correlli - 12.09.2009, 18:08
Re: Bugs/Suggestion - by Andom - 12.09.2009, 18:33
Re: Bugs/Suggestion - by Correlli - 12.09.2009, 21:29

Forum Jump:


Users browsing this thread: 3 Guest(s)