how to add og loc house
#1

how to add og loc house as class selection can anyone help me
Reply
#2

Og Loc house coordinates
pawn Код:
513.882507,-11.269994,1001.565307
and interior ID 3.
How to add class :
pawn Код:
public OnGameModeInit()
{
    AddPlayerClass(0, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0);
    AddPlayerClass(299, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0);
    return 1;
}
Reply
#3

where to add cordinates
Reply
#4

Quote:
Originally Posted by ReD_DeVi
Посмотреть сообщение
where to add cordinates
Maybe in the command which teleports you to OgLoc house ? lol.
Reply
#5

i dont have og loc house teleport command
Reply
#6

Quote:
Originally Posted by ReD_DeVi
Посмотреть сообщение
i dont have og loc house teleport command
Basicly, You can't add direcly Og Loc house, You will to make a teleport command or /enter, Which will teleport the player to that coordinates.
Reply
#7

clad i dont know where to add coordinates
Reply
#8

pawn Код:
public OnPlayerCommandText(playerid,cmdtext[])
{
    if(!strcmp(cmdtext, "/ogloc", true))
    {            
        SetPlayerPos(playerid, 513.882507,-11.269994,1001.565307);
        return 1;
    }
    return 0;
}
Reply
#9

then what about class selection
Reply
#10

pawn Код:
public OnGameModeInit()
{
    AddPlayerClass(0, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0);
    AddPlayerClass(299, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0);
    return 1;
}
Reply
#11

when i added the ogloc then it shows me error
Reply
#12

Quote:
Originally Posted by ReD_DeVi
View Post
when i added the ogloc then it shows me error
Show me the error please.
Reply
#13

Code:
error 010: invalid function or declaration
(2556) : error 010: invalid function or declaration
(2558) : error 010: invalid function or declaration
Reply
#14

Show me the code please, It does work perfectly for me
Reply
#15

pawn Code:
if(!strcmp(cmdtext, "/ogloc", true))
    {
        SetPlayerPos(playerid, 513.882507,-11.269994,1001.565307);
        return 1;
    }
    return 0;
}
Reply
#16

pawn Code:
CMD:ogloc(playerid,params[])
{
       SetPlayerPos(playerid, 513.882507,-11.269994,1001.565307);
       return 1;
}
Reply
#17

then what to do ?
Reply
#18

Quote:
Originally Posted by ReD_DeVi
View Post
then what to do ?
type /ogloc and it will teleport you to Og Loc house wtf -_-
Reply
#19

with other AddPlayerClass? or delete old and add new
Reply
#20

Quote:
Originally Posted by ReD_DeVi
View Post
with other AddPlayerClass? or delete old and add new
MAN, AddPlayerClass has nothing to do with commands
Just put this command with your commands, compile and run.
Make sure to let PlayerClass.
Reply


Forum Jump:


Users browsing this thread: