Created
July 14, 2015 22:14
-
-
Save Dronr/bd7852f70eade468296e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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