22.08.2011, 13:32
Try this
if (strcmp("/shop", cmdtext, true, 10) == 0)
{
if(gTeam[playerid] == TEAM_ZOMBIE)
{
SendClientMessage(playerid, 0x9EC73DAA,"Zombies can't buy Guns !");
}
else
{
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Choose a gun to buy", "M4 \
{F81414}$3000(100ammo) \nAK-47 {F81414}$1500(100ammo) \nBazooka {F81414}$10000(10Ammo) \n
Sniper Rifle {F81414}$7000(50ammo) \nGrenades {F81414}$8000(10ammo) \nMolotov {F81414}$400(10ammo)\
\nColt {F81414}$500(100ammo) \nCombat Shotgun {F81414}$6000(100ammo) \nUZI {F81414}$900(100ammo)
\nMP5 {F81414}$1000(100ammo) ", "Buy", "Cancel"); // You can change the dialog ID to your own
}
return 1;
}
if (strcmp("/shop", cmdtext, true, 10) == 0)
{
if(gTeam[playerid] == TEAM_ZOMBIE)
{
SendClientMessage(playerid, 0x9EC73DAA,"Zombies can't buy Guns !");
}
else
{
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Choose a gun to buy", "M4 \
{F81414}$3000(100ammo) \nAK-47 {F81414}$1500(100ammo) \nBazooka {F81414}$10000(10Ammo) \n
Sniper Rifle {F81414}$7000(50ammo) \nGrenades {F81414}$8000(10ammo) \nMolotov {F81414}$400(10ammo)\
\nColt {F81414}$500(100ammo) \nCombat Shotgun {F81414}$6000(100ammo) \nUZI {F81414}$900(100ammo)
\nMP5 {F81414}$1000(100ammo) ", "Buy", "Cancel"); // You can change the dialog ID to your own
}
return 1;
}