Problema con el /entrar
#8

Deberнas hacer algo parecido a esto:
pawn Код:
zcmd(entrar, playerid, params[]) // Comando /entrar
{
    if(Info[playerid][pJailed] > 0 ) return SendClientMessageEx(playerid, COLOR_WHITE, "[ERROR]: No puedes usar este comando."); // Si el jugador estб en la carcel prohibirle el acceso al comando
    if(IsPlayerConnected(playerid)) // Si el jugador estб conectado
    {
        if(IsPlayerInRangeOfPoint(playerid,3.0, 276.1417, 122.1376, 1004.6172+0.9)) // Si el jugador estб en la posiciуn para poner el comando /entrar
        {
            SetPlayerPos(playerid, 248.6054,75.7944,1003.6406+0.9); // Teletransportar al jugador dentro del vestuario
        }
    }
    return 1;
}
zcmd(salir, playerid, params[]) // Comando salir
{
    if(Info[playerid][pJailed] > 0 ) return SendClientMessageEx(playerid, COLOR_WHITE, "[ERROR]: No puedes usar este comando."); // Si el jugador estб en la carcel prohibirle el acceso al comando
    if(IsPlayerConnected(playerid)) // Si el jugador estб conectado
    {
        if(IsPlayerInRangeOfPoint(playerid,3.0, 248.6054,75.7944,1003.6406+0.9)) // Si el jugador estб en la posiciуn para poner el comando /salir
        {
            SetPlayerPos(playerid, 276.1417, 122.1376, 1004.6172+0.9); // Teletransportar al jugador fuera del vestuario
        }
    }
    return 1;
}
PD: Las coordenadas utilizadas en el ejemplo son las que pasaste anteriormente.
Reply


Messages In This Thread
Problema con el /entrar - by Jeree10 - 25.07.2014, 19:48
Respuesta: Problema con el /entrar - by Scope25 - 25.07.2014, 20:11
Re: Problema con el /entrar - by Jeree10 - 25.07.2014, 20:29
Respuesta: Problema con el /entrar - by chusothe41 - 25.07.2014, 20:34
Re: Problema con el /entrar - by Jeree10 - 25.07.2014, 20:39
Respuesta: Problema con el /entrar - by Scope25 - 25.07.2014, 20:42
Re: Problema con el /entrar - by Jeree10 - 25.07.2014, 20:46
Respuesta: Problema con el /entrar - by Scope25 - 25.07.2014, 21:04
Re: Problema con el /entrar - by Jeree10 - 26.07.2014, 02:13
Re: Problema con el /entrar - by Jeree10 - 26.07.2014, 18:45

Forum Jump:


Users browsing this thread: 1 Guest(s)