Jump to content

[CERERE TUTORIAL] Aplicatie staff din joc?.


VipBo$$

Recommended Posts

Salut as dori si eu un tutorial cu un sistem simplu ceva de genu, doar un inceput, restul fac eu, multumesc frumos.

PS: Am incercat sa il fac singur dar ma blocam acolo la dialog-ul comenzi de ex:

CMD:aplicastaff(playerid, params[])
{
    new stringz2[MAX_STRING],checkmysql[512];
    if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_ERROR, "Nu esti logat.");
    if(PlayerInfo[playerid][pHelper] > 0 || PlayerInfo[playerid][pAdmin] > 0) return SCM(playerid, COLOR_ERROR, "Nu poti accesa aceasta comanda deoarece faci parte din STAFF");
    mysql_format(SQL, checkmysql, sizeof(checkmysql), "SELECT * FROM `users` WHERE `id`='%d' AND `aplicatieh`='0'",PlayerInfo[playerid][pSQLID]);
    new Cache: verificare = mysql_query(SQL, checkmysql);
    if(cache_get_row_count() < 1) return ShowPlayerDialog(playerid, DIALOG_AIAPLICATIEH, DIALOG_STYLE_MSGBOX, "Server: Aplicatie", "Ai deja o aplicatie in STAFF, pentru a putea continua este nevoie sa o stergi.", "Sterge", "Anuleaza");
    cache_delete(verificare);

Si aici cand vine dialogu nu ma mai pricep + cu dialoguri-le care trb facute.... DIALOG_AIAPLICATIEH, DIALOG_AIAPLICATIIEH, etc...

g4JGBJX.gif.31953391ab64171df562293ad37a0875.gif.9d26b39cd3270634d9cf89dcb43fba87.gif

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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