i have a question
#1

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 )
Reply
#2

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
Reply
#3

http://forum.sa-mp.com/index.php?board=83.0 -> Romanian section
Reply
#4

Where ive to put that?

I'm kinda of newbie , i want to create my first GM , and i really need help
Reply
#5

Put it under OnPlayerCommandText
Reply
#6

mhm , it doesn't work ..

i put it right ?

Quote:

public OnPlayerCommandText(playerid, cmdtext[])
if(!strcmp(cmdtext, "/bikes", true))
{
SetPlayerPos(playerid,COORDSOFBIKE);
return 1;

Reply
#7

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
Reply
#8

Shit delete this one.
Reply
#9

Use /save to get the coords. It will be saved in your GTA folder.
Reply
#10

I explained here.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)