Need help with scripting
#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


Messages In This Thread
Need help with scripting - by popmun - 06.03.2009, 23:40
Re: Need help with scripting - by popmun - 07.03.2009, 08:35
Re: Need help with scripting - by [RP]Rav - 07.03.2009, 08:36
Re: Need help with scripting - by popmun - 07.03.2009, 08:42
Re: Need help with scripting - by [RP]Rav - 07.03.2009, 08:43
Re: Need help with scripting - by popmun - 07.03.2009, 08:44
Re: Need help with scripting - by popmun - 07.03.2009, 08:57
Re: Need help with scripting - by XPlatform - 07.03.2009, 09:07
Re: Need help with scripting - by popmun - 07.03.2009, 09:08
Re: Need help with scripting - by ReD_DeVi - 17.08.2012, 00:17

Forum Jump:


Users browsing this thread: 1 Guest(s)