Skip to content

Instantly share code, notes, and snippets.

@Dronr
Created July 14, 2015 22:14
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/bd7852f70eade468296e to your computer and use it in GitHub Desktop.
Save Dronr/bd7852f70eade468296e to your computer and use it in GitHub Desktop.
CMD:setbizprod(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, " Введите: /setbiztype [номер бизнеса [кол-во продуктов]");
if(params[0] < 0 || params[0] > 99) return SendClientMessage(playerid, COLOR_GREY," Биз: от 0 до 99");
if(params[1] < -1 || params[1] > 100000) return SendClientMessage(playerid, COLOR_GREY," Кол-во: от 1 до 100000");
gBiz[params[0]][Prod] = 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