08.05.2014, 09:37
pawn Код:
CMD:respawncar(playerid, params[])
{
if(alevel[playerid] < 1) return SCM(playerid, BIELA, "[ ! ] Nemбљ dostatoc(nй Admin Prбva !");
static
vehID
;
new reason[128];
if(sscanf( params, "iS", vehID, reason)) return SendClientMessage( playerid, -1, "Pouћi: /respawncar < carID > < reason >" );
if (vehID == INVALID_VEHICLE_ID) return SendClientMessage( playerid, -1, "ERROR: Bad CarID ." );
SetVehicleToRespawn( vehID );
new string[128];
format(string, sizeof string, "Admin %s (%d) has respawned vehicle ID %d successfully. Reason %s.", PlayerName(pID), pID, vehid, reason);
SendClientMessage(playerid, -1, string);
return 1;
}