11.06.2010, 13:59
Код:
if (strcmp("/buy micro SMG", cmdtext, true, 10) == 0) { SendClientMessage(playerid,0xAA3333AA,"You have bought a Micro SMG.You lost 4000$");// GivePlayerWeapon(playerid, 28,200); GivePlayerMoney(playerid,-4000); return 1; } if (strcmp("/buy AK47", cmdtext, true, 10) == 0) { SendClientMessage(playerid,0xAA3333AA,"You have bought an AK47.You lost 5000$");// GivePlayerWeapon(playerid, 30,200); GivePlayerMoney(playerid,-5000); return 1; } if (strcmp("/buy sniper rifle", cmdtext, true, 10) == 0) { SendClientMessage(playerid,0xAA3333AA,"You have bought a Sniper Rifle.You lost 7000$");// GivePlayerWeapon(playerid, 34,25); GivePlayerMoney(playerid,-7000); return 1; } if (strcmp("/buy satchel charge", cmdtext, true, 10) == 0) { SendClientMessage(playerid,0xAA3333AA,"You have bought a Sactchel Charge&Detonator.You lost 15000$");// GivePlayerWeapon(playerid, 39,5); GivePlayerMoney(playerid,-15000); return 1; } if (srcmp("/buy large white vibrator", cmdtext, true, 10) == 0) { SendClientMessage(playerid,0xAA3333AA,"You have bought an Large White Vibrator.You lost 500$");// GivePlayerWeapon(playerid, 12,1); GivePlayerMoney(playerid,-500); return 0; //huh? } return 1; //huh? }