їPor quй el comando me dice que el jugador estб lejos?
#1

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;

Reply
#2

Prueba aumentando el radio a 5 o 10.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)