GetLastPlayerVehicle
#1

Any one have idea's how to make such function?
Reply
#2

pawn Код:
// Note: Doesn't work when falling off a bike (-> wiki)
//
// Somewhere before OnPlayerExitVehicle & outside functions / callbacks
new
    last_vehicle [ MAX_PLAYERS ]
    ;
   
// Add / edit the callback
public OnPlayerExitVehicle(playerid, vehicleid)
{
    last_vehicle [ playerid ] = vehicleid;
    return 1;
}

// The function.
stock GetLastPlayerVehicle( playerID )
{
    return last_vehicle [ playerid ];
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)