Kronos | Дата: Четверг, 03.07.2014, 01:24 | Сообщение # 1 |
|
Местный мазафака
Сообщений: 117
| Команда с помощью которой администратор изымет у игроков оружие в установленном радиусе Код 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; }
|
|
| | |
| |