05.07.2009, 09:08
Код:
if (strcmp(cmdtext, "/buyaccess", true) == 0) { if (GetPlayerMoney(playerid) >= 10000000) { SendClientMessage(playerid, 0x33AA33AA, "You just bought access to weapon store!"); gGunAccess[playerid] += 1; SetPlayerMoney(playerid, gPlayerMoney[playerid] - 10000000); return 1; } if(GetPlayerMoney(playerid) < 1000000) { return SendClientMessage(playerid, 0xAA3333AA, "You have not enough money!"); } return 1; }