[Ajuda] OnPlayerRequestClass
#1

Tipo quando a pessoa loga no servidor e faz login, chama a callback OnPlayerRequestClass...

E queria fazer o seguinte: Se a skin do player no .ini for maior ou igual a "1" , ai pula a callback OnPlayerRequestClass e da spawn direto?

Eu coloquei o seguinte:

pawn Code:
public OnPlayerRequestClass(playerid,classid)
{
    if(skine[playerid] >= 1) //coloquei isso
    {
        OnPlayerSpawn(playerid);
        return 1;
    }
    SetPlayerPos(playerid,251.0581,-63.1020,11.7210);
    SetPlayerFacingAngle(playerid,356.9788);
    SetPlayerCameraPos(playerid,251.0978,-60.9160,14.7210);
    SetPlayerCameraLookAt(playerid,251.0581,-63.1020,11.7210);
    new a[20];
    format(a,20,"~r~Skin: ~w~%d",classid);
    GameTextForPlayer(playerid,a,3000,6);
    skine[playerid] = classid;
    return 1;
}
Funcionou perfeitamente, mas acontece que ainda fica as setinhas e o botгo "spawn" lб em baixo, e o player tem que apertar spawn pra poder realmente dar spawn...
Reply


Messages In This Thread
OnPlayerRequestClass - by †♥† - 10.10.2013, 01:18
Re: OnPlayerRequestClass - by Juniiro3 - 10.10.2013, 01:21
Re: OnPlayerRequestClass - by †♥† - 10.10.2013, 01:42
Respuesta: OnPlayerRequestClass - by DanDRT - 10.10.2013, 01:47
Re: OnPlayerRequestClass - by ThuuGLif3 - 10.10.2013, 01:48
Re: OnPlayerRequestClass - by †♥† - 10.10.2013, 02:08
Re: OnPlayerRequestClass - by willttoonn - 10.10.2013, 02:10
Re: OnPlayerRequestClass - by †♥† - 10.10.2013, 02:17
Re: OnPlayerRequestClass - by Zivo - 10.10.2013, 02:34
Re: OnPlayerRequestClass - by RuanRider - 10.10.2013, 03:30
Respuesta: OnPlayerRequestClass - by DanDRT - 10.10.2013, 12:08
Re: OnPlayerRequestClass - by †♥† - 10.10.2013, 14:45
Re: OnPlayerRequestClass - by RuanRider - 10.10.2013, 15:27
Re: OnPlayerRequestClass - by arakuta - 10.10.2013, 15:30
Re: OnPlayerRequestClass - by †♥† - 10.10.2013, 17:30
Re: OnPlayerRequestClass - by Zivo - 10.10.2013, 21:30
Re: OnPlayerRequestClass - by PT - 10.10.2013, 21:46
Re: OnPlayerRequestClass - by Don_Speed - 10.10.2013, 22:02

Forum Jump:


Users browsing this thread: 2 Guest(s)