07.08.2009, 21:39
So basically this is my script.
Now, I want it to be if you don't have [GunDealer] infront of your name then you cant use the command.
Help and i will add you in the Credits section for the FS i am working on!
Код:
if (strcmp(cmd, "/BuyGrenades", true) == 0) { new tmp[20], amount; tmp = strtok(cmdtext, index); if (strlen(tmp)) { amount = strval(tmp); if (IsPlayerConnected(amount)) { GivePlayerWeapon(playerid,16,amount"); GivePlayerMoney(playerid,-amount*1000) } else { SendClientMessage(playerid, 0xFF0000AA, "You Don't Have enough Money!"); } } else { SendClientMessage(playerid, 0xFF0000AA, "Usage: \"/buygrenades <amount>\""); } return 1;
Help and i will add you in the Credits section for the FS i am working on!