You Need sscanf.
PHP код:
CMD:sv( playerid, params[ ] )
{
static
vehID
;
if ( sscanf( params, "i", vehID ) )
return SendClientMessage( playerid, COLOR_RED, "SYNTAX: /sv < vehID >" );
if ( vehID == INVALID_VEHICLE_ID )
return SendClientMessage( playerid, COLOR_RED, "ERROR: Invalid vehicle ID." );
SetVehicleToRespawn( vehID );
SendClientMessage( playerid, COLOR_RED, "Vehicle has been respawned succesfully." );
return 1;
}