Need help with scripting
#1

Ok guys i downloaded stunt'n'drift'n'race'pwn v2 of seif's >topic
and im running it on my server

i downloaded a adminhouse

Now what i want to do is make a teleport command to that adminhouse in my gamemode i use

So like >/commands /// /tele /misc etc etc and when i open /tele => example : /airport/airport2/airport3 i want to add the tele command public so people can see the command next to my airport command example : /airport/airport2/airport3 /adminhouse

And the command must work can anyone help me with this how to do it?

If anyone would like to take his time and explain i would apriciate

thank you very much for your time.
Reply
#2

anyone?
Reply
#3

Код:
SetPlayerPos(playerid, Float:x, Float:y, Float:z);
Reply
#4

is it possible to make teleport command with filescript?

So that i can load to my server as [FS]
Reply
#5

yes it is..
Reply
#6

ok well do you know a link for a good tutorial to learn how to make [FS] scripts?
Reply
#7

i ment filterscript not filescript srry
Reply
#8

Replace what it says to replace in the comments...

Код:
#include <a_samp>

public OnFilterScriptInit()
{
	print("Filterscript Loaded..."); // This really isn't needed, you can change the text if you like.
	return 1;
}

public OnFilterScriptExit()
{
	return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/command", cmdtext) == 0) // Replace /command with the command name
	{
		SetPlayerPos(playerid,posx,posy,posz); // Replace posz, posy, and posz with the coordinates you want to use.
		return 1;
	}
	return 0;
}
Basic but should give you a brief idea of how to do it.

Stephen
Reply
#9

omg thank you verymuch man!
Reply
#10

ok
i will try to help u
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)