Teleport cmd
#9

Quote:
Originally Posted by Spike Cena
Посмотреть сообщение
#include <a_samp>

#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/teleport", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid, changeme);
return 1;
}
return 0;
}
Is it souse to go like this?
btw use [ PAWN ] and [ /PAWN ] without spaces when posting code

u need to change the "changeme" to the x,y,z pos of ur map so i suggest u go ingame (ofc loading the map in the server first) then doing /save map go to your samp folder and saved positions which should be in your gta userfiles and get the x,y,z for e.g

say i have already done the save part i go to my saved positions and find the code which should look something like this:

AddStaticVehicle(555,-1773.7599,1205.3926,24.8102,358.0844,58,1); // map
note: THIS IS ONLY EXAMPLE !
the numbers i have made bold r the numbers which u have to replace the changeme with
(again this is example use r own saved pos or ur come to what ever pos i put here )
Reply


Messages In This Thread
Teleport cmd - by Spike Cena - 14.05.2012, 16:33
Re: Teleport cmd - by [KHK]Khalid - 14.05.2012, 16:37
Re: Teleport cmd - by thefatshizms - 14.05.2012, 16:43
Re: Teleport cmd - by Spike Cena - 14.05.2012, 16:47
Re: Teleport cmd - by Faisal_khan - 14.05.2012, 16:49
Re: Teleport cmd - by thefatshizms - 14.05.2012, 16:55
Re: Teleport cmd - by Spike Cena - 14.05.2012, 16:57
Re: Teleport cmd - by Spike Cena - 14.05.2012, 17:02
Re: Teleport cmd - by thefatshizms - 14.05.2012, 17:09
Re: Teleport cmd - by Faisal_khan - 14.05.2012, 17:23

Forum Jump:


Users browsing this thread: 1 Guest(s)