SA-MP Forums Archive
їPor quй el comando me dice que el jugador estб lejos? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Español/Spanish (https://sampforum.blast.hk/forumdisplay.php?fid=29)
+---- Thread: їPor quй el comando me dice que el jugador estб lejos? (/showthread.php?tid=634601)



їPor quй el comando me dice que el jugador estб lejos? - Strikeskp - 22.05.2017

Tengo un problema, sucede que el comando /revisarcinturon al usarlo me dice "El jugador estб lejos"

PHP код:
CMD:vercinturon(playeridparams[])
{
    new 
string[256];
    if(
sscanf(params"u"params[0]))
    {
        
SendClientMessage(playeridGRIS"Uso: /vercinturon [ID]");
        return 
1;
    }
    if(!
IsPlayerConnected(params[0])) return SendClientMessage(playerid,COLOR_LIGHTRED"* El jugador no estб conectado.");
    if(!
IsPlayerInAnyVehicle(params[0])) return SendClientMessage(playeridCOLOR_LIGHTRED"* El jugador no estб en un vehнculo.");
    new 
Float:Pos[3];
    
GetPlayerPos(params[0], Pos[0], Pos[1], Pos[2]);
    if(
PlayerToPoint(playerid3Pos[0], Pos[1], Pos[2]))
    {
        if(
TieneCinturon[params[0]] == 0)
        {
            
format(stringsizeof(string), "* %s revisa el estado del cinturуn de %s."GetPlayerNameEx(playerid), GetPlayerNameEx(params[0]));
            
ProxDetector(15.0playeridstringCOLOR_PURPLECOLOR_PURPLECOLOR_PURPLECOLOR_PURPLECOLOR_PURPLE);
            
format(stringsizeof(string), "* %s no lleva el cinturуn abrochado."GetPlayerNameEx(params[0]));
            
SendClientMessage(playeridROJOstring);
            return 
1;
        }
        else
        {
            
format(stringsizeof(string), "* %s revisa el estado del cinturуn de %s."GetPlayerNameEx(playerid), GetPlayerNameEx(params[0]));
            
ProxDetector(15.0playeridstringCOLOR_PURPLECOLOR_PURPLECOLOR_PURPLECOLOR_PURPLECOLOR_PURPLE);
            
format(stringsizeof(string), "* %s lleva el cinturуn abrochado."GetPlayerNameEx(params[0]));
            
SendClientMessage(playeridVERDEstring);
        }
    }
    else return 
SendClientMessage(playeridCOLOR_WHITE"* Estбs muy lejos del jugador.");
    return 
1;




Respuesta: їPor quй el comando me dice que el jugador estб lejos? - Goncho28 - 22.05.2017

Prueba aumentando el radio a 5 o 10.