Warning: client exceeded "messageholelimit"
#5

My friend, try this code:

pawn Код:
CMD:rac(playerid,params[])
{
    if(PlayerInfo[playerid][LoggedIn] == 1)
    {
        if(PlayerInfo[playerid][Level] >= 4)
        {
            new string[128];
            new bool:unwanted[MAX_VEHICLES];
            for(new player=0; player<MAX_PLAYERS; player++)
            {
                if(IsPlayerConnected(player) && IsPlayerInAnyVehicle(player)) { unwanted[GetPlayerVehicleID(player)]=true; }
            }
            for(new cars=0; cars<MAX_VEHICLES; cars++)
            {
                if(!unwanted[cars]) SetVehicleToRespawn(cars);
            }
            format(string,sizeof(string),"Administrator %s has respawn all unused vehicles.",pName(playerid));
            for(new i; i<MAX_PLAYERS; i++)
            {
              if(IsPlayerConnected(i))
              {
                SendClientMessage(i,blue,string);
              }
            }
        }
      else return SendClientMessage(playerid,red,"ERROR: You are not a high enough level to use this command");
    }
    else return SendClientMessage(playerid,red,"ERROR: You must be logged in to use this commands");
    return 1;
}
Reply


Messages In This Thread
Warning: client exceeded "messageholelimit" - by Necip - 03.03.2014, 11:16
Re: Warning: client exceeded "messageholelimit" - by Keyhead - 03.03.2014, 12:02
Re: Warning: client exceeded "messageholelimit" - by Necip - 03.03.2014, 15:44
Re: Warning: client exceeded "messageholelimit" - by Necip - 04.03.2014, 15:26
Re: Warning: client exceeded "messageholelimit" - by JR_Junior - 04.03.2014, 16:37
Re: Warning: client exceeded "messageholelimit" - by doreto - 04.03.2014, 19:28
Re: Warning: client exceeded "messageholelimit" - by Necip - 04.03.2014, 20:16

Forum Jump:


Users browsing this thread: 1 Guest(s)