Command not recognized
#3

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;
}
Reply


Messages In This Thread
Command not recognized - by Mitchy - 30.11.2013, 17:12
Re: Command not recognized - by Mitchy - 30.11.2013, 21:11
Re: Command not recognized - by Konstantinos - 30.11.2013, 21:16
Re: Command not recognized - by Mitchy - 30.11.2013, 21:26
Re: Command not recognized - by Lajko1 - 30.11.2013, 22:38
Re: Command not recognized - by Mitchy - 30.11.2013, 23:06
Re: Command not recognized - by Mitchy - 01.12.2013, 11:50
Re: Command not recognized - by Mitchy - 02.12.2013, 16:50

Forum Jump:


Users browsing this thread: 1 Guest(s)