26.12.2012, 21:31
(
Последний раз редактировалось Zume; 30.12.2014 в 05:28.
)
Probй como lo pusiste de primero y no me diу problemas
Код:
#define Distancia_PJ 2.0 #define Error_1L "[!] no estas en la posicion exacta!." #define menos_color -1 forward EstaEnPosLala(playerid); public EstaEnPosLala(playerid) { new Float:x,Float:y,Float:z; if(IsPlayerInRangeOfPoint(playerid, Distancia_PJ, x, y, z) || IsPlayerInRangeOfPoint(playerid, Distancia_PJ, x, y, z) || IsPlayerInRangeOfPoint(playerid, Distancia_PJ, x, y, z) || IsPlayerInRangeOfPoint(playerid, Distancia_PJ, x, y, z)) return 1; } public OnPlayerConnect(playerid) { if(EstaEnPosLala(playerid)) { // lala :'3 } else SendClientMessage(playerid, menos_color, Error_1L); return 1; }