[Ajuda]RequestClass
#1

Queria saber como fazer, para mudar de cameras no request class. Por Exemplo. Esse codigo abaixo estб em um lugar sу (interior 14, ... ) Eu queria fazer para a LSPD aparecer num lugar, e os civis em outro lugar, outras cordenadas e tal. vlw

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    switch(classid)
    {
        case 0,1,2,3,4,5: GameTextForPlayer(playerid, "~g~LSPD", 1000, 3);
        case 6,7,8,9,10,11: GameTextForPlayer(playerid, "~w~Civiu", 1000, 3);
    }
    SetPlayerInterior(playerid,14);
    SetPlayerPos(playerid,258.4893,-41.4008,1002.0234);
    SetPlayerFacingAngle(playerid, 270.0);
    SetPlayerCameraPos(playerid,256.0815,-43.0475,1004.0234);
    SetPlayerCameraLookAt(playerid,258.4893,-41.4008,1002.0234);
    return 1;
}
Reply
#2

Й sу colocar coordenadas (com seus respectivos interiores) random
Reply
#3

eu queria tipo assim:
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    switch(classid)
    {
        case 0,1,2,3,4,5: GameTextForPlayer(playerid, "~g~LSPD", 1000, 3);
    }
    SetPlayerInterior(playerid,14);
    SetPlayerPos(playerid,258.4893,-41.4008,1002.0234);
    SetPlayerFacingAngle(playerid, 270.0);
    SetPlayerCameraPos(playerid,256.0815,-43.0475,1004.0234);
    SetPlayerCameraLookAt(playerid,258.4893,-41.4008,1002.0234);
    switch(classid)
    {
        case 6,7,8,9,10,11: GameTextForPlayer(playerid, "~w~Civiu", 1000, 3);
    }
    SetPlayerInterior(playerid,0);
    SetPlayerPos(playerid,1,1,1.1);
    SetPlayerFacingAngle(playerid, 270.0);
    SetPlayerCameraPos(playerid,256.0815,-43.0475,1004.0234);
    SetPlayerCameraLookAt(playerid,258.4893,-41.4008,1002.0234);
    return 1;
}
PMs serem em um lugar, e civis em outro. Mas assim n da certo, como devo fazer?
Reply
#4

Coloca dentro do case ...
Reply
#5

como assim? :/
Reply
#6

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    switch(classid)
    {
        case 0,1,2,3,4,5: GameTextForPlayer(playerid, "~g~LSPD", 1000, 3);
        {
            SetPlayerInterior(playerid,14);
            SetPlayerPos(playerid,258.4893,-41.4008,1002.0234);
            SetPlayerFacingAngle(playerid, 270.0);
            SetPlayerCameraPos(playerid,256.0815,-43.0475,1004.0234);
            SetPlayerCameraLookAt(playerid,258.4893,-41.4008,1002.0234);
        }
        case 6,7,8,9,10,11:
        {
            GameTextForPlayer(playerid, "~w~Civiu", 1000, 3);
            SetPlayerInterior(playerid,0);
            SetPlayerPos(playerid,1,1,1.1);
            SetPlayerFacingAngle(playerid, 270.0);
            SetPlayerCameraPos(playerid,256.0815,-43.0475,1004.0234);
            SetPlayerCameraLookAt(playerid,258.4893,-41.4008,1002.0234);
        }  
    }  
    return 1;
}
Reply
#7

valeu!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)