30.11.2013, 21:16
Make sure that you use only ZCMD in that script for the commands.
pawn Код:
command(respawnvehicles, playerid, params[]) // Respawns EVERY unused vehicle.
{
if(Player[playerid][AdminLevel] < 2) return SendClientMessage(playerid, GREY, "You are not a high enough administrator rank to use this command.");
for(new i = 1; i < MAX_VEHICLES; i++)
{
if(!IsVehicleOccupied(i)) SetVehicleToRespawn(i);
}
return 1;
}
command(frespawnvehicles, playerid, params[]) // Respawns EVERY unused faction vehicle
{
if(!Player[playerid][Faction]) return SendClientMessage(playerid, GREY, "You are not in a faction.");
if(Player[playerid][FactionRank] < 6) return SendClientMessage(playerid, GREY, "You are not a high enough rank in your faction to use this command.");
for(new i = 1; i < MAX_VEHICLES; i++)
{
if(!IsVehicleOccupied(i)) SetVehicleToRespawn(VehicleFaction[i]);
}
return 1;
}

