[SOLVED] Teleporting...
#1

Well, I read and followed the directions in http://forum.sa-mp.com/index.php?topic=63792.0 but all I get is like 5 error #010's
Reply
#2

Post your error output and the code related to it. Much easier to help you that way.
Reply
#3

this is how it must be done


public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/your command", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid, the x position, the y postition, and the z position);
return 1;
}
Reply
#4

Well, i used it as a filterscript because when i put it in the gamemode it was bein a ratard. heres what i did but it still doesnt work... (i tryed it IG and it said invalid command or whatever)

Код:
#include <a_samp>

#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
	print("\n--------------------------------------");
	print(" TELEPORTS LOADED");
	print("--------------------------------------\n");
	return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])

{
  if (strcmp("/adminarea1", cmdtext, true, 10) == 0)
  {
        SetPlayerPos(playerid, 270.8308,1990.0657,17.5324);
    return 1;
    }
	return 0;
}


#endif
Reply
#5

Remove

pawn Код:
#if defined FILTERSCRIPT
and

pawn Код:
#endif
Reply
#6

Alrighty! Thats what did it. Thanks.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)