/spaz - gun commands.
#1

Quote:

if (strcmp("/Rifle", cmdtext, true))
{
if (GetPlayerMoney(playerid) < 6000)
{
SendClientMessage(playerid,0xFF0000AA, "You dont have enough money, you need 6000$!");
return 1;
}
SendClientMessage(playerid, 0xFF0000AA,"You have bought a Country Rifle, Enjoy!");
GivePlayerMoney(playerid, -6000);
GivePlayerWeapon(playerid, 33, 500);
return 1;
}

I have several of these like one /shotgun command for 1000$ that you can buy too, All commands are the same but it gives this error IG: 1, It shows for all commands this ''You dont have enough money, you need 1000$'', and the only ting you can get is the shotgun for 1000 but even commands that does't exist it gives this error, how can i fix that it gives the good gun and doesn't disable all commands.
Note:
The command above is used for all commands, just the price,sendclientmessage,weaponid,etc are changed, but all commands look like that.
Reply


Messages In This Thread
/spaz - gun commands. - by Brunok - 19.06.2011, 18:50
Re: /spaz - gun commands. - by Wesley221 - 19.06.2011, 19:02
Re: /spaz - gun commands. - by Brunok - 19.06.2011, 19:07
Re: /spaz - gun commands. - by Wesley221 - 19.06.2011, 19:13
Re: /spaz - gun commands. - by jameskmonger - 19.06.2011, 19:15
Re: /spaz - gun commands. - by Wesley221 - 19.06.2011, 19:18
Re: /spaz - gun commands. - by Brunok - 19.06.2011, 19:23

Forum Jump:


Users browsing this thread: 2 Guest(s)