OnPlayerDeath And OnPlayerDisconnect [+REP]
#3

pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
      if( IsPlayerInAnyVehicle( playerid ))
      {
            if( ! GetPlayerVehicleSeat( playerid ))
            {
                    DestroyVehicle( GetPlayerVehicleID( playerid ));
 .....
Make sure you read this, too ! (it CAN return 128 for some weird reason)

The same code goes for both the callbacks..
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)