i have a question - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: i have a question (
/showthread.php?tid=122522)
i have a question -
Xpack - 22.01.2010
mhm , how can i create a teleport with the name '' /bikes '' , and the put the coordonates where the bikes is?
or , is from the GM?
( ive to say again , my english sucks

)
Re: i have a question -
JoeDaDude - 22.01.2010
https://sampwiki.blast.hk/wiki/OnPlayerCommandText
https://sampwiki.blast.hk/wiki/SetPlayerPos
pawn Код:
if(!strcmp(cmdtext, "/bikes", true))
{
SetPlayerPos(playerid,COORDSOFBIKE);
return 1;
}
The
pawn Код:
if(strcmp, cmdtext, "/bikes", true))
{
Might be totally wrong seeing as i just guessed,
Il correct it in a moment if its not right.
EDIT: It was wrong and i have corrected it
Re: i have a question -
DSK_Vyorel - 22.01.2010
http://forum.sa-mp.com/index.php?board=83.0 -> Romanian section
Re: i have a question -
Xpack - 22.01.2010
Where ive to put that?
I'm kinda of newbie , i want to create my first GM , and i really need help
Re: i have a question -
JoeDaDude - 22.01.2010
Put it under OnPlayerCommandText
Re: i have a question -
Xpack - 22.01.2010
mhm , it doesn't work ..
i put it right ?
Quote:
public OnPlayerCommandText(playerid, cmdtext[])
if(!strcmp(cmdtext, "/bikes", true))
{
SetPlayerPos(playerid,COORDSOFBIKE);
return 1;
|
Re: i have a question -
Fedee! - 22.01.2010
Quote:
Originally Posted by Xpack
mhm , it doesn't work ..
i put it right ?
Quote:
public OnPlayerCommandText(playerid, cmdtext[])
if(!strcmp(cmdtext, "/bikes", true))
{
SetPlayerPos(playerid,COORDSOFBIKE);
return 1;
|
|
Lol in CORDSOFDBIKE goes X, Y, Z
Re: i have a question -
Fedee! - 22.01.2010
Shit delete this one.
Re: i have a question -
Jeffry - 22.01.2010
Use /save to get the coords. It will be saved in your GTA folder.
Re: i have a question -
DSK_Vyorel - 22.01.2010
I explained
here.