Jump to content

WopsS

Administrator
  • Posts

    2,200
  • Joined

  • Last visited

  • Days Won

    118

Community Answers

  1. WopsS's post in Problema admin mysql was marked as the answer   
    La OnPlayerLogin pune sa ia si admin-ul din baza de date.
    [pawn]P_DATA[ playerid ][ Admin] = cache_get_field_content_int( 0, "Admin", aHandle ) ;[/pawn]
     
    Si la OnPlayerConnect reseteaza variabilele! Adica pune
    [pawn]P_DATA[playerid ][Level] = 1;
    P_DATA[playerid ][Admin] = 0;[/pawn]
    etc.
  2. WopsS's post in Ajutor in legatura cu culoare la /turfs was marked as the answer   
    Uita-te aici. http://wiki.sa-mp.com/wiki/Colors_List#Alpha_values_.28transparency.29
     
    Daca vrei sa faci o coloare mai transparenta modifici ultimele doua litere de la final, de exemplu "FF" in "CC" sau ceva de genul acesta.
     
    Aici
    [pawn]0x0FC4E3A4[/pawn]
    poti sa pui
    [pawn]0x0FC4E3CC[/pawn]
    pentru ceva mai tranasparent.
     
    Sursa:

  3. WopsS's post in 3 intrebari was marked as the answer   
    Ce nu ai inteles?
    Trebuie sa stii doar engleza si sa citesti parametrii.
  4. WopsS's post in Crashdetect was marked as the answer   
    Pune [pawn]new gLastDriver[303];[/pawn]
  5. WopsS's post in Eroare comanda /exit was marked as the answer   
    Modifica liniile astea:
     
    [pawn]if(GetPlayerVehicleID(playerid) == 196 || GetPlayerVehicleID(playerid) == 197 || GetPlayerVehicleID(playerid) == 198 || GetPlayerVehicleID(playerid) == 199 ||
    GetPlayerVehicleID(playerid) == 200 || GetPlayerVehicleID(playerid) == 201 || GetPlayerVehicleID(playerid) == 202 || GetPlayerVehicleID(playerid) == 203)
    {
    TogglePlayerControllable(playerid,1);
    RemovePlayerFromVehicle(playerid);
    }[/pawn]
  6. WopsS's post in Cerere tutorial [-DONATERANK-] NAME: -say- was marked as the answer   
    Pentru inceput trebuie sa te legi de OnPlayerText.
     
    1. Cauti in gamemode [pawn]public OnPlayerText[/pawn]
     
    2. Inlocuiesti cu asta.
     
    [pawn]public OnPlayerText(playerid, text[])
    {
            new pName[MAX_PLAYER_NAME], string[256];
           GetPlayerName(playerid, pName, sizeof(pName));
     
           if(PlayerInfo[playerid][pDonateRank] == 1)
                  format(string, sizeof(string), "[V.I.P] %s say: %s", pName, text);
           else
                 format(string, sizeof(string), "%s say: %s", pName, text);
           ProxDetector(20.0, playerid, string, COLOR_FADE1, COLOR_FADE2, COLOR_FADE3, COLOR_FADE4, COLOR_FADE5);
    return 0;
    }[/pawn]
     
    Explicatie:
     
    La inceput cu [pawn]new pName[MAX_PLAYER_NAME], string[256];
    GetPlayerName(playerid, pName, sizeof(pName));[/pawn]
     
    ii creezi string-ul pentru nume si pentru text, dupa ii iei numele.
     
    Aici [pawn] if(PlayerInfo[playerid][pDonateRank] == 1)
                format(string, sizeof(string), "[POWER USER] %s say: %s", pName, text);
    else if(PlayerInfo[playerid][pDonateRank] == 2)
                format(string, sizeof(string), "[V.I.P] %s say: %s", pName, text);
    else
                format(string, sizeof(string), "%s say: %s", pName, text);
    [/pawn]
     
    Verifici daca user-ul are rank-ul pentru POWER USER (PlayerInfo[playerid][pDonateRank], modifica cum ai tu acolo), daca il are ii adaugi text-ul [POWER USER] in chat, in caz contrar verifici daca este V.I.P, daca este ii adaugi textul [V.I.P], daca cele doua de mai sus nu sunt adevarate, nu ii adaugi nimic.
  7. WopsS's post in Problema dialog spawn was marked as the answer   
    Cand jucatorul se logheaza foloseste [pawn]TogglePlayerSpectating(playerid, 1);[/pawn] si dupa ce s-a logat pune [pawn]TogglePlayerSpectating(playerid, 0);[/pawn]
  8. WopsS's post in Problemă teritorii was marked as the answer   
    Uita-te aici. http://wiki.sa-mp.com/wiki/Colors_List#Alpha_values_.28transparency.29
     
    Daca vrei sa faci o coloare mai transparenta modifici ultimele doua litere de la final, de exemplu "FF" in "CC" sau ceva de genul acesta.
     
    Aici
    [pawn]0x0FC4E3A4[/pawn]
    poti sa pui
    [pawn]0x0FC4E3CC[/pawn]
    pentru ceva mai tranasparent.
×
×
  • 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.