[HELP] Finding a X Y Z
#1

Hello there, well, in the script i actually downloaded, there is multiple jobs available, and sometimes, i cannot find them.
So on the .pawn file, i actually see this:
Code:
Create3DTextLabel("Thief Job \nDo /join to become one ",COLOR_RED,1520.9598,-1011.1766,24.6362,10.0, 0);// thief
How could i find ''1520.9598,-1011.1766,24.6362,10.0, 0''?

Thanks in advance for helping a such newbie guy!
Reply
#2

Try simple FS using SetPlayerPos?
Reply
#3

not best way

find in your script public OnPlayerCommandText(playerid, cmdtext[])
and put this under it

if(strcmp(cmd, "/teleport", true) == 0)
{
SetPlayerPos(playerid,1520.9598,-1011.1766,24.6362);
return 1;
}

than in game type /teleport
Reply
#4

Quote:
Originally Posted by karmancho
not best way

find in your script public OnPlayerCommandText(playerid, cmdtext[])
and put this under it

if(strcmp(cmd, "/teleport", true) == 0)
{
SetPlayerPos(playerid,1520.9598,-1011.1766,24.6362);
return 1;
}

than in game type /teleport
ah thanks bro,was really easy ^^
Reply
#5

If i do this command, would it work?:

Code:
if(strcmp(cmd, "/teleport", true) == 0)
 {
 if (PlayerInfo[playerid][pAdmin] >= 5)
  {
  SetPlayerPos(playerid,1520.9598,-1011.1766,24.6362);
   }
   else
    {
    SendClientMessage(playerid, COLOR_GRAD1, " You are not authorized to use that command!");
    }
    }
   return 1;
   }
Reply
#6

if(strcmp(cmd, "/teleport", true) == 0)
{
if (PlayerInfo[playerid][pAdmin] >= 5)
{
SetPlayerPos(playerid,1520.9598,-1011.1766,24.6362);
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " You are not authorized to use that command!");
}
return 1;
}
Reply
#7

Quote:
Originally Posted by karmancho
if(strcmp(cmd, "/teleport", true) == 0)
{
if (PlayerInfo[playerid][pAdmin] >= 5)
{
SetPlayerPos(playerid,1520.9598,-1011.1766,24.6362);
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " You are not authorized to use that command!");
}
return 1;
}
What? You are only spammer, which is trying to get some useless posts.
Reply
#8

why i am spammer i help him he typed wrong and i fixed look his script
Reply
#9

Quote:
Originally Posted by karmancho
why i am spammer i help him he typed wrong and i fixed look his script
Oh, I am really sorry about it. I haven't seen that it is a correction. What a shame.
Reply
#10

Quote:
Originally Posted by karmancho
if(strcmp(cmd, "/teleport", true) == 0)
{
if (PlayerInfo[playerid][pAdmin] >= 5)
{
SetPlayerPos(playerid,1520.9598,-1011.1766,24.6362);
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " You are not authorized to use that command!");
}
return 1;
}
You just posted the exact same code he did!
If your posting that to fix indentation, The forum messes it up when pasted
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)