Skip to content

Instantly share code, notes, and snippets.

@Dronr
Created July 17, 2015 06:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Dronr/4a0de922bd67eec885bf to your computer and use it in GitHub Desktop.
Save Dronr/4a0de922bd67eec885bf to your computer and use it in GitHub Desktop.
CMD:moneyhouse(playerid, params[])
{
if(!AcceptWrite(playerid)) return 1;
if(pData[playerid][IsAdmin] <= 8) return 1;
if(sscanf(params, "dd",params[0],params[1])) return SendClientMessage(playerid, COLOR_WHITE, " Введите: /classhouse [номер дома] [сумма]");
if(params[0] < 0 || params[0] > 10000) return SendClientMessage(playerid, COLOR_GREY," От 0 до 1000!");
if(gHouse[params[0]][EnterX] == 0) return SendClientMessage(playerid, COLOR_GREY," Дом не создан!");
gHouse[params[0]][Nalog] = params[1];
return SendClientMessage(playerid, COLOR_WHITE, " Успешно");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment