Detecting if player crashed in wall/etc...
#2

pawn Код:
if(oldstate == PLAYER_STATE_DRIVER && newstate == PLAYER_STATE_ONFOOT)
{
     pInfo[playerid][WearingHelmet] = false;
     if( IsPlayerAttachedObjectSlotUsed( playerid, 1 ) )
            RemovePlayerAttachedObject( playerid, 1 );
}
As simple as that.
Reply


Messages In This Thread
Detecting if player crashed in wall/etc... - by RollTi - 24.04.2012, 06:53
Respuesta: Detecting if player crashed in wall/etc... - by Marricio - 24.04.2012, 07:27
Re: Detecting if player crashed in wall/etc... - by RollTi - 24.04.2012, 07:32

Forum Jump:


Users browsing this thread: 1 Guest(s)