Kronos | Дата: Четверг, 03.07.2014, 01:30 | Сообщение # 1 |
|
Местный мазафака
Сообщений: 117
| И так моя вторая работа. За основу взял каманду /agg Код if(strcmp(cmd,"/ahp",true)==0) { if(PlayerInfo[playerid][pAdmin] >=4) { tmp = strtok(cmdtext,idx); if(!strlen(tmp)) return SendClientMessage(playerid,COLOR_WHITE,"{}Введите: /ahp [Радиус]"); 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)) { SetPlayerHealth(players, 100.0); SendClientMessage(players, COLOR_YELLOW,"Администратор установил вам здоровье(100hp)"); } } format(string, sizeof(string), "Вы установили полное здоровье игрокам в радиусе."); SendClientMessage(playerid, COLOR_YELLOW, string); } return true; }
|
|
| | |
| |