13.09.2011, 23:11
pawn Код:
new
pRhino[ MAX_PLAYERS ]
;
pRhino[ playerid ] = CreateVehicle( ... );
SetTimerEx( "RhinoUse", 60000, false, "i", playerid );
forward RhinoUse( playerid );
public RhinoUse( playerid )
{
SendClientMessage( playerid, -1, "Your Rhino has expired." );
if ( IsPlayerInAnyVehicle( playerid )
{
if ( GetPlayerVehicleID( playerid ) == pRhino[ playerid ] )
{
RemovePlayerFromVehicle( playerid );
}
}
DestroyVehicle( pRhino[ playerid ] );
}