Strange bug.
#8

Quote:
Originally Posted by Butilka
Посмотреть сообщение
No. I said
Quote:

When player dies in vehicle

My bad...
Try this:

pawn Код:
new IsDeadInVehicle[MAX_PLAYERS];
public OnPlayerDeath(playerid, killerid, reason)
{
     if(IsPlayerInAnyVehicle(playerid) == 1)
     {
          IsDeadInVehicle[playerid]++;
     }
     return 1;
}
public OnPlayerSpawn(playerid)
{
     if(IsDeadInVehicle[playerid] == 1)
     {
          ResetPlayerWeapons(playerid);
          IsDeadInVehicle[playerid] = 0;
     }
     return 1;
}
Reply


Messages In This Thread
Strange bug. - by Butilka - 24.09.2010, 15:10
Re: Strange bug. - by Ash. - 24.09.2010, 15:44
Re: Strange bug. - by Butilka - 24.09.2010, 16:44
Re: Strange bug. - by acade - 24.09.2010, 16:54
Re: Strange bug. - by Mike_Peterson - 24.09.2010, 17:07
Re: Strange bug. - by Butilka - 24.09.2010, 17:13
Re: Strange bug. - by Mike_Peterson - 24.09.2010, 18:44
Re: Strange bug. - by Ash. - 24.09.2010, 18:47
Re: Strange bug. - by Mike_Peterson - 24.09.2010, 18:52
Re: Strange bug. - by Ash. - 24.09.2010, 18:55

Forum Jump:


Users browsing this thread: 1 Guest(s)