[Include] y_commands - Most flexible and fastest command processor, now on the YSI wiki
#13

Quote:
Originally Posted by Crayder
Посмотреть сообщение
You should probably show us.
Код:
#include <YSI/y_commands>

YCMD:shop(playerid,params[],help)
{
    new listtext[512],substr[40];
	if(help)
	{
	    SEM(playerid,"CMDINFO: Displays shop to buy special weapons!");
	    return 1;
	}
	forex(i, 13)
	{
	    if(PlayerInfo[playerid][WeaponsPurchased][i])
	    {
	        format(substr,sizeof(substr),"%s - {33AA33}PURCHASED\n",GunNames[SelledGun[i][Weaponid]]);
	    }
	    else
	    {
            format(substr,sizeof(substr),"%s - $%d\n",GunNames[SelledGun[i][Weaponid]],SelledGun[i][Price]);
	    }
	    strcat(listtext,substr,sizeof(listtext));
	}
	ShowPlayerDialog(playerid,DIALOG_BUY_GUN,DIALOG_STYLE_LIST,"Guns Shop",listtext,"Buy","Exit");
	return 1;
}
Reply


Messages In This Thread
y_commands - Most flexible and fastest command processor, now on the YSI wiki - by corne - 15.04.2015, 18:46
Re: y_commands - Most flexible and fastest command processor, now on the YSI wiki - by SickAttack - 16.04.2015, 05:29
Re: y_commands - Most flexible and fastest command processor, now on the YSI wiki - by Crayder - 16.04.2015, 05:41
Re: y_commands - Most flexible and fastest command processor, now on the YSI wiki - by corne - 16.04.2015, 14:04
Re: y_commands - Most flexible and fastest command processor, now on the YSI wiki - by Max_Andolini - 02.06.2015, 12:55
Re: y_commands - Most flexible and fastest command processor, now on the YSI wiki - by [KHK]Khalid - 02.06.2015, 16:21
Re: y_commands - Most flexible and fastest command processor, now on the YSI wiki - by RaeF - 03.06.2015, 12:09
Re: y_commands - Most flexible and fastest command processor, now on the YSI wiki - by Max_Andolini - 03.06.2015, 13:18
Re: y_commands - Most flexible and fastest command processor, now on the YSI wiki - by RaeF - 03.06.2015, 23:13
Re: y_commands - Most flexible and fastest command processor, now on the YSI wiki - by justice96 - 27.07.2015, 08:24
Re: y_commands - Most flexible and fastest command processor, now on the YSI wiki - by Crayder - 27.07.2015, 08:35
Re: y_commands - Most flexible and fastest command processor, now on the YSI wiki - by JaydenJason - 27.07.2015, 09:34
Re: y_commands - Most flexible and fastest command processor, now on the YSI wiki - by justice96 - 27.07.2015, 11:48
Re: y_commands - Most flexible and fastest command processor, now on the YSI wiki - by RaeF - 27.07.2015, 12:21
Re: y_commands - Most flexible and fastest command processor, now on the YSI wiki - by justice96 - 27.07.2015, 12:28
Re: y_commands - Most flexible and fastest command processor, now on the YSI wiki - by Crayder - 27.07.2015, 16:26
Re: y_commands - Most flexible and fastest command processor, now on the YSI wiki - by Kruzz - 02.12.2015, 18:45
Re: y_commands - Most flexible and fastest command processor, now on the YSI wiki - by Crayder - 02.12.2015, 19:52
Respuesta: Re: y_commands - Most flexible and fastest command processor, now on the YSI wiki - by Zume - 02.12.2015, 22:42
Re: Respuesta: Re: y_commands - Most flexible and fastest command processor, now on the YSI wiki - by Crayder - 03.12.2015, 01:41

Forum Jump:


Users browsing this thread: 1 Guest(s)