[HELP] Finding a X Y Z -
Gummy Bear - 17.04.2010
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!
Re: [HELP] Finding a X Y Z -
¤Adas¤ - 17.04.2010
Try simple FS using SetPlayerPos?
Re: [HELP] Finding a X Y Z -
karmancho - 17.04.2010
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
Re: [HELP] Finding a X Y Z -
Gummy Bear - 17.04.2010
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 ^^
Re: [HELP] Finding a X Y Z -
Gummy Bear - 17.04.2010
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;
}
Re: [HELP] Finding a X Y Z -
karmancho - 17.04.2010
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;
}
Re: [HELP] Finding a X Y Z -
¤Adas¤ - 17.04.2010
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.
Re: [HELP] Finding a X Y Z -
karmancho - 17.04.2010
why i am spammer i help him he typed wrong and i fixed look his script
Re: [HELP] Finding a X Y Z -
¤Adas¤ - 17.04.2010
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.
Re: [HELP] Finding a X Y Z -
Torran - 17.04.2010
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