02-21-2013, 21:17
Using !shop i want players to be able to buy attachments but code below doesn't work?
PHP Code:
//Attachments
if (Message == "!41")
{
int attachCost2 = Convert.ToInt32(attachCost);
if ((int)Points[Client.XUID] < attachCost2)
{
iPrintLnBold("^1Not enough points!", Client);
}
else
{
int Current = Client.Other.CurrentWeapon;
int WepID = GetWeapon(Current + "_reflex");
Client.Other.PrimaryWeapon = WepID;
Client.Other.PrimaryWeapon = WepID;
Points[Client.XUID] = ((int)Points[Client.XUID]) - attachCost2;