Jump to content

AdY.Capone

Membru
  • Posts

    115
  • Joined

  • Last visited

Posts posted by AdY.Capone

  1. error 021: symbol already defined: "strmatch"

    invalid expression, assumed zero

    expected token: ")", but found "return"

    {
      if ((strcmp(String1, String2, true, strlen(String2)) == ) && (strlen(String2) == strlen(String1)))
       return true;

  2. Da acolo..

    public OnPlayerText(playerid, text[])
    {
        if(GetTickCount() - SpamCheck2[playerid] < 1000 && SpamCheck2[playerid] != 0 && PlayerInfo[playerid][pAdmin] < 5)
        {
            return 0;
        }
        SpamCheck2[playerid] = GetTickCount();

        if(PlayerInfo[playerid][pMuted] == 1)
        {
            SendClientMessage(playerid, COLOR_ERROR, "You cannot speak, you have been silenced.");
            return 0;
        }
        if(SpectatorID[playerid] != INVALID_PLAYER_ID)
        {
            SendClientMessage(playerid, COLOR_ERROR, "You cannot speak while spectating.");
            return 0;
        }
        if(FindAdvertise(text))
        {
            format(gString, sizeof(gString), "AdmWarning:{FFFFFF} %s typed: %s", GetName(playerid), text);
            ABroadCast(COLOR_LIGHTRED, gString, 1);
            return 0;
        }
        

        if(OnCall[playerid] == 1)
        {
              foreach(new i : Player)
            {
                if(Mobile == playerid)
                {
                    format(gString, sizeof(gString), "%s Says (cellphone): %s", GetName(playerid), text);
                    ProxDetector(20.0, playerid, gString, COLOR_FADE1, COLOR_FADE2, COLOR_FADE3, COLOR_FADE4, COLOR_FADE5);
                    format(gString, sizeof(gString), "%s Says (cellphone): %s", GetName(playerid), text);
                    SendClientMessage(i,  COLOR_YELLOW, gString);
                    PhoneLog(playerid, i, text, 2);
                }
            }
        }
        else if(InLive[playerid] == 1)
        {
            if(PlayerInfo[playerid][pMember] + PlayerInfo[playerid][pLeader] == 4)
            {
                format(gString, sizeof(gString), "Live Reporter %s: %s", GetName(playerid), text);
                SendClientMessageToAll(COLOR_LIGHTGREEN, gString);
            }
            else
            {
                format(gString, sizeof(gString), "Live Player %s: %s", GetName(playerid), text);
                SendClientMessageToAll(COLOR_LIGHTGREEN, gString);
            }
        }
        else
        {
            if(Undercover[playerid] == 1)
            {
                format(gString, sizeof(gString), "Unknown says: %s", text);
                ProxDetector(20.0, playerid, gString, COLOR_FADE1, COLOR_FADE2, COLOR_FADE3, COLOR_FADE4, COLOR_FADE5);
            }
            else
            {
                format(gString, sizeof(gString), "%s says: %s", GetName(playerid), text);
                ProxDetector(20.0, playerid, gString, COLOR_FADE1, COLOR_FADE2, COLOR_FADE3, COLOR_FADE4, COLOR_FADE5);
            }
        }
        return 0;
    }

  3. Salut am vrut sa creez tag in chat pentru administratorii sau pentru un nume.. am gasit si aici un model dar cum il fac sa fie doar pe numele meu.

    ex

    In acest script este pentru pMember 0 si leader 0. Cum pot face sa pun pe nume..?

      else if(PlayerInfo[playerid][pMember] == 0 || PlayerInfo[playerid][pLeader] == 0)
    		{
    		    text[0] = toupper(text[0]);
    			format(string, sizeof(string), "{FAFAF1}Civil %s{00C0FF} [ID %d] {9AE1FC}spune{FCBE03}: {FFFFFF}%s", sendername,playerid, text);
    			ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
    			if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pLevel] >= 1) SetPlayerChatBubble(playerid, string, 0xa9c4e4FF, 20.0, 10000);
    		}
  4. 1. Daca mai scrii cu CAPS nu te va ajuta nimenii.

    2. Exista internet nu? cauti cum sa faci o conexiunea php ca pana la urma php este nu?

    Iti voi explica.

    Intri in config tau.. si editezi.

    Host -->IP Sql

    User-->user sql

    Password-->parola sql

    Database--> numele database(in 99% din cazuri user=database)

    Apoi totul este aproape terminat.

    Intri in header sau cum e denumit acolo.

    La page url scrii pagina ta ex http://www.google.com

    apoi il pui pe host in public_html

    (!)in loc de google.com scrii domeniul tau!

  5. Clar.. el iti zice ce sa faci si tu "altu". Daca nici un text nu stii sa modifici atunci ce rost mai are sa iti zic de alte lucruri? nu am ce sa iti explic aici nu e nimic de explicat e pur si simplu logic.

  6. Salut, folosesc gamemode saints si as vrea sa modific spawn-ul la masini. Adica sa poti avea mai multe masini spawnate pe server. Stiu ca acest lucru cauzeaza lag, dar momentan nu am foarte multi jucatorii si as vrea sa testez asta.

     

×
×
  • 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.