[pawn] //functia PlayerToPtoint daca no ai forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z); public PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z) { if(IsPlayerConnected(playerid)) { new Float:oldposx, Float:oldposy, Float:oldposz; new Float:tempposx, Float:tempposy, Float:tempposz; GetPlayerPos(playerid, oldposx, oldposy, oldposz); tempposx = (oldposx -x); tempposy = (oldposy -y); tempposz = (oldposz -z); //printf("DEBUG: X:%f Y:%f Z:%f",posx,posy,posz); if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi))) { return 1; } } return 0; } //si comanda if(strcmp(cmdtext, "/hm", true) == 0) { if(PlayerToPoint(1.0,playerid,402.4715,2462.0723,16.5000) || PlayerToPoint(1.0,playerid,-2635.6709,1366.7129,7.1252) || PlayerToPoint(1.0,playerid,-2338.0388,-1610.1379,483.7186) || PlayerToPoint(1.0,playerid,2137.1509,-2435.3596,13.5469) || PlayerToPoint(1.0,playerid,1313.6654,1267.3495,10.8203)) { SetPlayerHealth(playerid, 100.00); SetPlayerArmour( playerid, 100.00 ); SendClientMessage(playerid, COLOR_RED,"{48FB0D}Spawn Health, {F70000}Adaugata!"); } return 1; }[/pawn]