Jump to content

irinelbro69

Membru
  • Posts

    113
  • Joined

  • Last visited

  • Days Won

    6

Posts posted by irinelbro69

  1. On 8/17/2021 at 4:40 AM, [RW]Robi said:

    Pentru toti haterii acestui proiect, inca activam, au trecut 4 ani si 6 luni de la infintare si suntem 26 de membrii in total.

    (pozele au fost facute la ora 4:30 AM).

    YOftfGq.png wKplgwT.png

     

    ,, Multumim pentru sustinerea acordata ''

    mai sunteti si in 2024? daca da, cum ma pot alatura? :) 

  2. Salut, incearca comanda asta:

    CMD:me(playerid, params[])
    {
        if(isnull(params) || strlen(params) < 3)
        {
            return SendClientMessage(playerid, 0xFFFFFFFF, "/me [action]");
        }
    
        new name[MAX_PLAYER_NAME];
        GetPlayerName(playerid, name, sizeof(name));
    
        new message[128];
        format(message, sizeof(message), "(/me) * %s: %s", name, message);
        return SendNearbyMessage(playerid, COLOR_PURPLE, message);
    }


    Inainte de comanda / dupa, e alegerea ta, adauga si urmatorul stock:

    stock SendNearbyMessage(playerid, color, message[], Float:distance = 15.0)
    {
        new Float:x, Float:y, Float:z;
        GetPlayerPos(playerid, x, y, z);
    
        for(new player = 0; player < MAX_PLAYERS; player++)
        {
            if(GetPlayerVirtualWorld(player) != GetPlayerVirtualWorld(playerid)) continue;
            if(GetPlayerInterior(player) != GetPlayerInterior(playerid)) continue;
            if(GetPlayerDistanceFromPoint(player) > distance) continue;
    
            SendClientMessage(player, color, message);
        }
    
        return 1;
    }
  3. salut, incearca asa:

    case DIALOG_REGISTER5: 
    {
        if(!response) return PlayerHasRegistered(playerid);
        new id = strval(inputtext);
    
        /*if(id == PlayerInfo[playerid][pSQLID]) {
            SCM(playerid, -1, "Nu iti poti pune ID-ul tau de referral!");
            format(string, sizeof(string), "{C1BDF7}>> {FFFFFF}Ai fost de cineva adus pe comunitatea noastra?\n{C1BDF7}>> {FFFFFF}Daca da scrie-i referalu mai jos.");
            ShowPlayerDialog(playerid, DIALOG_REGISTER5, DIALOG_STYLE_INPUT, "{C1BDF7}Register", string, "{C1BDF7}Next", "{C1BDF7}Cancel");    
            return 1;
        }*/
    
        new query[64];
        mysql_format(database, query, sizeof(szQuery), "SELECT * FROM `users` WHERE `ID` = '%d'", id);
        result = mysql_query(database, szQuery);
    
        if(cache_num_rows())
        {
            new name[MAX_PLAYER_NAME];
            cache_get_field_content(0, "Name", name);
    
            format(string, sizeof(string), "{5F9CC9}>> {FFFFFF}Esti sigur ca {5F9CC9}%s {FFFFFF}te-a adus pe comunitate?", name);
            ShowPlayerDialog(playerid, DIALOG_REGISTER6, DIALOG_STYLE_MSGBOX, "Referral:", string, "Ok", "Back");
        }
    
        cache_delete(result);
    }

     

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