[AJUDA] Spawn do player...
#1

galera, quando iniciava meu server, aparecia pra escolher: zumbi e humano, aн meu amigo pois uma text draw identificando esses 2 pra min sу q agora se eu escolher zumbi ou humano tanto faz vem sempre humano .-. porque ? valeu

olha o code antigo do public OnPlayerRequestClass(playerid,classid)

pawn Код:
public OnPlayerRequestClass(playerid,classid)
{
    SetPlayerPos(playerid,299.9177,2741.7598,42.9127);
    SetPlayerFacingAngle(playerid,198.9686);
    SetPlayerCameraPos(playerid,306.3498,2727.6697,37.0493);
    SetPlayerCameraLookAt(playerid,299.9177,2741.7598,42.9127);
    if(classid == 0)
    {
        PlayerTeam[playerid] = 0;
        SetPlayerTeam(playerid,0);
    }
    else if(classid == 1)
    {
        PlayerTeam[playerid] = 1;
        SetPlayerTeam(playerid,1);
    }
    return 1;
}
o novo codigo:

pawn Код:
public OnPlayerRequestClass(playerid,classid)
{
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid,2965.3875,-1879.3577,8.7813);
    SetPlayerFacingAngle(playerid,94.2419);
    SetPlayerCameraPos(playerid,2962.0913,-1879.5524,8.7813);
    SetPlayerCameraLookAt(playerid,2965.3875,-1879.3577,8.7813);
    gPlayerClass[playerid] = classid;
    switch (classid)
    {
        case 0:
        {
            SetPlayerColor(playerid, COLOR_GREEN);
            GameTextForPlayer(playerid, "~g~Humanos", 10000, 4);
        }
        case 1:
        {
            SetPlayerColor(playerid, COLOR_RED);
            GameTextForPlayer(playerid, "~r~Zumbis", 10000, 4);
        }
    }
    return 1;
}
plz ajudem ae
Reply


Messages In This Thread
[AJUDA] Spawn do player... - by tivin - 08.05.2011, 03:36
Re: [AJUDA] Spawn do player... - by JonathanFeitosa - 08.05.2011, 03:40
Respuesta: [AJUDA] Spawn do player... - by tivin - 08.05.2011, 19:04

Forum Jump:


Users browsing this thread: 1 Guest(s)