15.07.2014, 18:18
Hey guys.
I'm using zcmd
It compiles and everything but when I join the game and type the command it tells me unknown command
Commands
I'm using zcmd
It compiles and everything but when I join the game and type the command it tells me unknown command
Commands
Код:
CMD:buym4(playerid, params[]) // or CMD:mycommand(playerid, params[]) { if (GetPlayerMoney(playerid) < 50000) return SendClientMessage(playerid, COLOR_RED,"You don't have enough money!"); GivePlayerWeapon(playerid, 31); GivePlayerMoney(playerid, -50000); } CMD:buyak(playerid, params[]) // or CMD:mycommand(playerid, params[]) { if (GetPlayerMoney(playerid) < 50000) return SendClientMessage(playerid, COLOR_RED,"You don't have enough money!"); GivePlayerWeapon(playerid, 30); GivePlayerMoney(playerid, -50000); SendClientMessage(palyerid, COLOR_LIGHTBLUE, "You've bought AK47"); return 1; } CMD:buysniper(playerid, params[]) // or CMD:mycommand(playerid, params[]) { if (GetPlayerMoney(playerid) < 75000) return SendClientMessage(playerid, COLOR_RED,"You don't have enough money!"); GivePlayerWeapon(playerid, 34); GivePlayerMoney(playerid, -75000); SendClientMessage(palyerid, COLOR_LIGHTBLUE, "You've bought sniper"); return 1; } CMD:buyrpg(playerid, params[]) // or CMD:mycommand(playerid, params[]) { if (GetPlayerMoney(playerid) < 1000000) return SendClientMessage(playerid, COLOR_RED,"You don't have enough money!"); GivePlayerWeapon(playerid, 35); GivePlayerMoney(playerid, -1000000); SendClientMessage(palyerid, COLOR_LIGHTBLUE, "You've bought RPG"); return 1; } CMD:buymg(playerid, params[]) // or CMD:mycommand(playerid, params[]) { if (GetPlayerMoney(playerid) < 1500000) return SendClientMessage(playerid, COLOR_RED,"You don't have enough money!"); GivePlayerWeapon(playerid, 38); GivePlayerMoney(playerid, -1500000); SendClientMessage(palyerid, COLOR_LIGHTBLUE, "You've bought Minigun"); return 1; } CMD:buycg(playerid, params[]) // or CMD:mycommand(playerid, params[]) { if (GetPlayerMoney(playerid) < 60000) return SendClientMessage(playerid, COLOR_RED,"You don't have enough money!"); GivePlayerWeapon(playerid, 27); GivePlayerMoney(playerid, -60000); SendClientMessage(palyerid, COLOR_LIGHTBLUE, "You've bought Combat Shotgun"); return 1; } CMD:commands(playerid, params[]) { SendClientMessage(playerid, COLOR_WHITE, "Weapon cmds: /buym4, /buyak, /buysniper, /buycg, /buymg, /buyrpg"); SendClientMessage(playerid, COLOR_WHITE, "Normal CMDS: /givebounty, /kill"); return 1; }