Jump to content

Reflex

Membru
  • Posts

    64
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by Reflex

  1. Pentru ca ai uitat o paranteza...Fi mai atent. Poftim cum ar trebuii sa fie:

      if(strcmp(cmd, "/ahelp", true) == 0 || strcmp(cmd, "/ah", true) == 0)
        {
            if(IsPlayerConnected(playerid))
            {
                SendClientMessage(playerid, COLOR_GREEN,"_________________________________________________________________");
                if (PlayerInfo[playerid][pAdmin] >= 1)
                {
                    SendClientMessage(playerid,  COLOR_GREEN, "{ff0000}» {ffd700}Trial Admin:{ffffff} /check • /checkweapons • /recon /reconoff • /kick • /ban • /goto • /bigears • /re(spawn)");
                    SendClientMessage(playerid,  COLOR_GREEN, "{ff0000}» {ffd700}Trial Admin:{ffffff}  /atransfer • /ahouse • /abiz • /freeze • /unfreeze • /mute • /showmute • /slap • /ck ");
                    SendClientMessage(playerid,  COLOR_GREEN, "{ff0000}» {ffd700}Trial Admin:{ffffff} /dn • /up • /fly • /lt • /rt • /gotom • /gotosf • /gotols • /setint • /setvw");
                 }
                if (PlayerInfo[playerid][pAdmin] >= 2)
                {
                    SendClientMessage(playerid, COLOR_GREEN,"{ff0000}» {ffd700}Regular Admin:{ffffff} • /setteam • /cnn • /gethere");
                }
                if (PlayerInfo[playerid][pAdmin] >= 3)
                {
                    SendClientMessage(playerid, COLOR_GREEN,"{ff0000}» {ffd700}Super Admin:{ffffff}  /entercar • /gotocar • /rtc • /getcar • /unwarn • /disarm • /disarmall");
                }
                if (PlayerInfo[playerid][pAdmin] >= 4)
                {
                    SendClientMessage(playerid, COLOR_GREEN,"{ff0000}» {ffd700}Lead Admin:{ffffff}  /oldcar • /explode • /forceskin • /givegunallzone • /givedrugs");
                    SendClientMessage(playerid, COLOR_GREEN,"{ff0000}» {ffd700}Lead Admin:{ffffff}  /repaircar /respawncar • /sethp • /setarmor • /setchamp /respawn");
                }
                if (PlayerInfo[playerid][pAdmin] >= 1337)
                {
                    SendClientMessage(playerid, COLOR_GREEN,"{ff0000}» {ffd700}Head Admin:{ffffff}  /house • /houseo • /biz • /sbiz • /showsbiz");
                    SendClientMessage(playerid, COLOR_GREEN,"{ff0000}» {ffd700}Head Admin:{ffffff}  /nooc • /cnnn • /tod • /makeircadmin • /agivelicense");
                    SendClientMessage(playerid, COLOR_GREEN,"{ff0000}» {ffd700}Head Admin:{ffffff}  /hirecar • /cc • /jail • /fpk • /crash • /setskin • /healall ");
                }
                if (PlayerInfo[playerid][pAdmin] >= 1338)
                {
                    SendClientMessage(playerid, COLOR_GREEN,"{ff0000}» {ffd700}Co Owner:{ffffff}  /asellbiz • /asellsbiz • /asellhouse • /mark • /gotomark");
                    SendClientMessage(playerid, COLOR_GREEN,"{ff0000}» {ffd700}Co Owner:{ffffff}  /stratlotto • /makegm • /prison • /getip");
                }
                if (PlayerInfo[playerid][pAdmin] >= 1339)
                {
                    SendClientMessage(playerid, COLOR_GREEN,"{ff0000}» {ffd700}Owner:{ffffff}  /gotoxyz • /veh • /mk • /cks");
                    SendClientMessage(playerid, COLOR_GREEN,"{ff0000}» {ffd700}Owner:{ffffff}  /givelevelall • /giverpall • /setstat • /makeadmin");
                    SendClientMessage(playerid, COLOR_GREEN,"{ff0000}» {ffd700}Owner:{ffffff}   /money • /givemoney • /givevip • /ungivevip");
                    SendClientMessage(playerid, COLOR_GREEN,"{ff0000}» {ffd700}Owner:{ffffff}   /cweather • /logout • /logoutall • /savemission • /loadmission");
    			}
                SendClientMessage(playerid, COLOR_GREEN,"_________________________________________________________________");
            }
            return 1;
        }
    • Upvote 1
  2. Adauga:

    stock PlayerToPoint(Float:radi, playerid, Float, Float:y, Float:z)
    {
        new Floatldposx, Floatldposy, Floatldposz;
        new Float:tempposx, Float:tempposy, Float:tempposz;
        GetPlayerPos(playerid, oldposx, oldposy, oldposz);
        tempposx = (oldposx -x);
        tempposy = (oldposy -y);
        tempposz = (oldposz -z);
        if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
        {
            return 1;
        }
        return 0;
    }

    Pentru PlayerToPoint

    Pentru ProxDetector:

    forward ProxDetector(Float:radi, playerid, string[],col1,col2,col3,col4,col5);

    Pentru ClearChatBox:

    public ClearChatbox(playerid, lines)
    {
        if (IsPlayerConnected(playerid))
        {
            for(new i=0;i<100;i++)
            SendClientMessageToAll(COLOR_WHITE," ");
        }
        return 1;
    }

    Daca deja le ai , inseamna ca ai uitat o paranteza.

    • Upvote 1
  3. if(PlayerInfo[playerid][pAdmin] < 1 || PlayerInfo[playerid][pTrial] < 1) SendClientMessage(playerid, COLOR_GRAD1, "** Nu ai rangul administrativ necesar!");

    Cu:

    if(PlayerInfo[playerid][pAdmin] < 1 || PlayerInfo[playerid][pTrial] < 1) return SendClientMessage(playerid, COLOR_GRAD1, "** Nu ai rangul administrativ necesar!");

     

  4. Am schimbat acel pAFK, cu cel care il folosesc la comanda(/afk)....nu functioneaza cum ar trebuii.

    De exemplu -> Am pus:

    if(afktime[i]/60 > 1

    Dar am luat kick dupa 2 minute si ceva...  Nu dupa 1minut.

    Asa am facut:

    forward AfkKicked();
    public AfkKicked()
    {
    	for(new i=0; i<MAX_PLAYERS; i++)
    	{
    	    if(afktime[i]/60 > 1 && PlayerInfo[i][AFKBRB] == 0)
    	    {
                new KickedAfkName[40],string[145];
            	GetPlayerName(i,KickedAfkName,sizeof(KickedAfkName));
    			format(string, sizeof(string), "%s[%d] a primit kick motiv: afk mai mult de 1 minut",KickedAfkName,i);
    	        SendClientMessageToAll(-1,"kick pentru ca ai stat mai mult de 1 minut afk");
    			afktime[i] = 0;
    			Kick(i);
    	    }
    	}
    	return 1;
    }

    Iar uneori le apar la playeri le apar random, acel TextLabel. Asta inainte sa pun acest afkkicker.

    Cum pot rezolva? (Problema cu kick-ul si textlabel random..) 

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.