29.06.2011, 07:13
Look at those :
Those 2 CMD's are working fine , but the problem that if you have 0 and you do /buyarmor - /buyhealth , you get -10000 , i want that if you have less than 10k it say : Error : You Don't have Enough Cash
And also if a player do /buyarm - /buyarmoooooooor or something like this it also give him armor for 10k , but i want that ONLY /buyarmor works , any help ?
Quote:
} if (strcmp("/Buyhealth", cmdtext, true, 5) == 0) { SetPlayerHealth(playerid, 100.0); GivePlayerMoney(playerid, -10000); return 1; } if (strcmp("/BuyArmor", cmdtext, true, 5) == 0) { SetPlayerArmour(playerid, 100.0); GivePlayerMoney(playerid, -10000); return 1; } |
And also if a player do /buyarm - /buyarmoooooooor or something like this it also give him armor for 10k , but i want that ONLY /buyarmor works , any help ?