SA-MP Forums Archive
Buyadmin - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Buyadmin (/showthread.php?tid=362894)



Buyadmin - xSkullx - 25.07.2012

Hi everybody, i make an /buyadmin for player because they ask me every time 'you give me admin?'.
But when i enter on server and type /buyadmin server don't make anything
Command:
Код:
	 if (strcmp(cmdtext, "/buyadmin", true)==0)
    {
    new pName;
    new dstrg[1024];
    new name[MAX_PLAYER_NAME], strg[900];
    GetPlayerName(playerid, name, sizeof(name));\
    strcat(dstrg,"{FC0303}Admin Level 1 + Vip Level 1-{FFFFFF}1-Euro\n");
    strcat(dstrg,"{FC0303}Admin Level 2 + Vip Level 1-{FFFFFF}2-Euro\n");
    strcat(dstrg,"{FC0303Admin Level 3 + Vip Level 2-{FFFFFF}3-Euro\n");
    strcat(dstrg,"{FC0303}Admin Level 4 + Vip Level 2-{FFFFFF}4-Euro\n");
    strcat(dstrg,"{FC0303}Admin Level 5 + Vip  Level 3-{FFFFFF}5-Euro\n");
    strcat(dstrg,"{FC0303}Admin Level 6 + Vip  Level 3-{FFFFFF}6-Euro\n");
    strcat(dstrg,"{FC0303}Admin Level 7 + Vip Level 4-{FFFFFF}7-Euro\n");
    strcat(dstrg,"{FC0303}Admin Level 8 + Vip Level 4-{FFFFFF}8-Euro\n");
    strcat(dstrg,"{FC0303}Admin Level 9 + Vip Level 4-{FFFFFF}9-Euro\n");
    strcat(dstrg,"{FC0303}Admin Level 10 + Vip Level 4-{FFFFFF}10-Euro\n");
    strcat(dstrg,"{FFFFFF}Pentru a cumpara admin adauga id de Y!M(Yahoo! Messenger):\n");
    strcat(dstrg,"{FC0303}Wolf --> sadixx.kidd@yahoo.com {FFFFFF}\n");
    strcat(dstrg,"{FC0303}xBlueSx --> fathal_13@yahoo.com {FFFFFF}\n");
    strcat(dstrg,"Multumim  %s  pentru ca ai citi Preturile.",pName);
    ShowPlayerDialog(playerid, 1111, DIALOG_STYLE_MSGBOX, "{FFFFFF}Salut!{FC0303}Vrei sa cumperi admin?{FFFFFF}Uite preturile mai jos.", strg, "OK", "Cancel");
    return 1;
    }



Re: Buyadmin - Rudy_ - 25.07.2012

edit: Nvm


Re: Buyadmin - xSkullx - 26.07.2012

Anybody?


Re: Buyadmin - Alexis1999 - 26.07.2012

That's because the dialog cannot expand more than it's precised size due a lot lines.. Try using SendClientMessage instead


Re: Buyadmin - xSkullx - 26.07.2012

I wanna be a dialog..