29.01.2010, 17:44
Hi guys i have a problem.
I have created a command.
If you type /ha u will pay 10,000$ and you can have full armour/health BUT i need help.
I wont make that if the player dont have money (in this case 10,000$) it will shown an error message.
Here is the command.
Thanks.
P.S. Sorry for my english but im italian!
I have created a command.
If you type /ha u will pay 10,000$ and you can have full armour/health BUT i need help.
I wont make that if the player dont have money (in this case 10,000$) it will shown an error message.
Here is the command.
Код:
if(strcmp(cmdtext, "/ha", true)==0) { SendPlayerFormattedText(playerid, "Thank you for using the /ha command.Now your armour and your health will be set to 100 (FULL).The cost is 10.000$", 0); GivePlayerMoney(playerid, -10000); SetPlayerHealth(playerid, 100.0); SetPlayerArmour(playerid, 100.0); return 1; }
P.S. Sorry for my english but im italian!