20.04.2011, 13:15
(
Последний раз редактировалось buzifej; 20.04.2011 в 13:51.
)
The command is not good.
Код:
CMD:callmedic(playerid, params[]) { if(medic[playerid] == 1) return SendClientMessage(playerid,COLOR_RED,"Error: You have called medic!"); new Float:x,Float:y,Float:z; GetPlayerPos(playerid,x,y,z); hivo = playerid; fogadva[playerid] = 0; y1 = y; x1 = x; z1 = z; for(new i=0;i<MAX_PLAYERS;i++) { if(gTeam[i] == TEAM_MENTO) { if(IsPlayerConnected(i)) { new str[128]; GetPlayerName(playerid,str,sizeof(str)); mento1[playerid] = 1; format(str,sizeof(str),"%s has called the medic Call accept: /mentoaccept",str); SendClientMessage(i,COLOR_WHITE,str); }else{ if(NoMedic < 1) { SendClientMessage(playerid, COLOR_GREY, " no paramedic service"); SendClientMessage(playerid, COLOR_GREEN, "You have been automatice healed"); ClearAnimations(playerid); SetPlayerHealth(playerid,90); animba[playerid] = 0; TogglePlayerControllable(playerid, 1); if(animba[playerid] == 0) { SendClientMessage(playerid,COLOR_RED,"You are not in anim"); } } } } } return 1; }