Posts: 518
Threads: 59
Joined: Aug 2012
how to add og loc house as class selection can anyone help me
Posts: 1,241
Threads: 67
Joined: Dec 2013
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;
}
Posts: 518
Threads: 59
Joined: Aug 2012
Posts: 1,241
Threads: 67
Joined: Dec 2013
Quote:
Originally Posted by ReD_DeVi
where to add cordinates
|
Maybe in the command which teleports you to OgLoc house ? lol.
Posts: 518
Threads: 59
Joined: Aug 2012
i dont have og loc house teleport command
Posts: 1,241
Threads: 67
Joined: Dec 2013
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.
Posts: 518
Threads: 59
Joined: Aug 2012
clad i dont know where to add coordinates
Posts: 1,241
Threads: 67
Joined: Dec 2013
pawn Код:
public OnPlayerCommandText(playerid,cmdtext[])
{
if(!strcmp(cmdtext, "/ogloc", true))
{
SetPlayerPos(playerid, 513.882507,-11.269994,1001.565307);
return 1;
}
return 0;
}
Posts: 518
Threads: 59
Joined: Aug 2012
then what about class selection
Posts: 1,241
Threads: 67
Joined: Dec 2013
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;
}
Posts: 518
Threads: 59
Joined: Aug 2012
when i added the ogloc then it shows me error
Posts: 1,241
Threads: 67
Joined: Dec 2013
Quote:
Originally Posted by ReD_DeVi
when i added the ogloc then it shows me error
|
Show me the error please.
Posts: 518
Threads: 59
Joined: Aug 2012
Code:
error 010: invalid function or declaration
(2556) : error 010: invalid function or declaration
(2558) : error 010: invalid function or declaration
Posts: 1,241
Threads: 67
Joined: Dec 2013
Show me the code please, It does work perfectly for me
Posts: 518
Threads: 59
Joined: Aug 2012
pawn Code:
if(!strcmp(cmdtext, "/ogloc", true))
{
SetPlayerPos(playerid, 513.882507,-11.269994,1001.565307);
return 1;
}
return 0;
}
Posts: 1,241
Threads: 67
Joined: Dec 2013
pawn Code:
CMD:ogloc(playerid,params[])
{
SetPlayerPos(playerid, 513.882507,-11.269994,1001.565307);
return 1;
}
Posts: 518
Threads: 59
Joined: Aug 2012
Posts: 1,241
Threads: 67
Joined: Dec 2013
Quote:
Originally Posted by ReD_DeVi
then what to do ?
|
type /ogloc and it will teleport you to Og Loc house wtf -_-
Posts: 518
Threads: 59
Joined: Aug 2012
with other AddPlayerClass? or delete old and add new
Posts: 1,241
Threads: 67
Joined: Dec 2013
Quote:
Originally Posted by ReD_DeVi
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.