02.08.2011, 13:06
This will respawn a certain vehicle ID you entered.
Requirements : ZCMD + sscanf
Hope it helps you.
Requirements : ZCMD + sscanf
pawn Код:
CMD:respawnveh( playerid, params[ ] )
{
if ( !IsPlayerAdmin( playerid ) )
return SendClientMessage( playerid, -1, "ERROR: You aren't a RCON admin." );
static
vehID
;
if ( sscanf( params, "i", vehID ) )
return SendClientMessage( playerid, -1, "SYNTAX: /respawnveh < vehID >" );
if ( vehID == INVALID_VEHICLE_ID )
return SendClientMessage( playerid, -1, "ERROR: Invalid vehicle ID." );
SetVehicleToRespawn( vehID );
SendClientMessage( playerid, -1, "Vehicle has been respawned succesfully." );
return 1;
}