Kaputka
Умник
PHP:
}
CMD:addloot(playerid, params[])
{
if(PlayerLogged[playerid] == 0) return true;
if(PlayerInfo[playerid][pAdmin] < 2 || AdminLogged[playerid] == false) return true;
if(PlayerInfo[playerid][pAdminDuty] == 0) return SendClientMessage(playerid, COLOR_GREY, YouCanNotAdminDuty);
if(sscanf(params, "d", params[0])) return SendClientMessage(playerid, COLOR_WHITE, "Введите: /addloot [1 - Кошелек, 2 - Наркотики 3 - Обьедки, 4 - Сигара]");
if(params[0] > 5) return 1;
new Float:positions[3];
GetPlayerPos(playerid,positions[0],positions[1],positions[2]);
CreateLoot(params[0],positions[0],positions[1],positions[2]-1.0);
SendClientMessage(playerid, COLOR_WHITE, "Вы успешно создали лут");
return true;
}
