How to add more in /shop
#1

Hello, i'm newbie at scripting and i rlly want to learn.
Can someone explain me how to add more in premium /shop?
I want to add:

Premium members on days, like:

Premium 10 days: - 5 premium points
Premium 15 days - 15 premium points
Premium 30 days - 40 premium points

and how to make it works, not only in dialog
here is cmd /shop:

Код:
CMD:shop(playerid, params[])
{
	if(PinLogged[playerid] == 0)return SCM(playerid, COLOR_LIGHTRED,"Introdu pin-ul folosind /pin, daca nu ai unul /setpin.");
    {
        new titlestring[MAX_STRING],string1[MAX_STRING],string2[MAX_STRING],string3[MAX_STRING],string4[MAX_STRING],string5[MAX_STRING],string6[MAX_STRING],iString[1500];
  		format(titlestring, sizeof(titlestring), "Premium points: {FFFF00}%d", PlayerInfo[playerid][pPremiumPoints]);
  		format(string1, sizeof(string1), "{E67E30}[+] Get Premium Points\n{E67E30}[+] Vehicle Premium");
  		format(string2, sizeof(string2), "{FFFFFF}Premium account - {E8E40C}60{FFFFFF} premium points\n{FFFFFF}Change Nickname - {E8E40C}20{FFFFFF} premium points");
  		format(string3, sizeof(string3), "{FFFFFF}Clear 20 FP - {E8E40C}20{FFFFFF} premium points\n{FFFFFF}Clear 40 FP - {E8E40C}30{FFFFFF} premium points");
  		format(string4, sizeof(string4), "{FFFFFF}Clear warns - {E8E40C}20{FFFFFF} premium points\n{FFFFFF}Create Clan - {E8E40C}100{FFFFFF} premium points");
  		format(string5, sizeof(string5), "{FFFFFF}Vehicle hidden color - {E8E40C}20{FFFFFF} premium points\n{FFFFFF}20x fireworks - {E8E40C}5{FFFFFF} premium points");
  		format(string6, sizeof(string6), "{FFFFFF}iPhone - {E8E40C}15{FFFFFF} premium points\n{FFFFFF}Buy $300,000 - {E8E40C}1{FFFFFF} premium points\n{FFFFFF}Buy $3,000,000 - {E8E40C}10{FFFFFF} premium points\n{FFFFFF}Buy $30,000,000 - {E8E40C}70{FFFFFF} premium points");
  		format(iString, sizeof(iString), "%s\n%s\n%s\n%s\n%s\n%s", string1, string2, string3, string4, string5, string6);
	 	ShowPlayerDialog(playerid,DIALOG_SHOP,DIALOG_STYLE_LIST, titlestring, iString, "Buy","Exit");
    }
    return 1;
thanks all
Reply


Messages In This Thread
How to add more in /shop - by imrobert - 02.11.2016, 17:49
Re: How to add more in /shop - by NeXoR - 02.11.2016, 18:57
Re: How to add more in /shop - by RyderX - 02.11.2016, 19:17
Re: How to add more in /shop - by imrobert - 02.11.2016, 21:27
Re: How to add more in /shop - by sheNdjze - 03.11.2016, 02:36
Re: How to add more in /shop - by Unrea1 - 03.11.2016, 03:20
Re: How to add more in /shop - by justice96 - 03.11.2016, 03:26

Forum Jump:


Users browsing this thread: 1 Guest(s)