ll_Dok_ll
Умник
Каманда с помощью которой администратор изымет у игроков оружие в установленом радиусе
Может кому и пригодиться.
Нажимаем спасибо...
PHP:
if(strcmp(cmd,"/atw",true)==0)
{
if(PlayerInfo[playerid][pAdmin] >=4)
{
tmp = strtok(cmdtext,idx);
if(!strlen(tmp)) return SendClientMessage(playerid,COLOR_WHITE,"Введите: /atw [Радиус]");
new Float:pos = floatstr(tmp),Float:player_x,Float:player_y,Float:player_z;
new string[128];
for(new players=0; players < MAX_PLAYERS; players++)
{
GetPlayerPos(players,player_x,player_y,player_z);
if(IsPlayerInRangeOfPoint(playerid,pos,player_x,player_y,player_z))
{
ResetPlayerWeapons(players);
SendClientMessage(players, COLOR_YELLOW,"Администратор изьял ваше оружие.");
}
}
format(string, sizeof(string), "Вы изьяли оружие у игроков в установленом радиусе.");
SendClientMessage(playerid, COLOR_YELLOW, string);
}
return true;
}
Нажимаем спасибо...
Последнее редактирование:
