SA-MP Forums Archive
Teleports me to thin air - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Teleports me to thin air (/showthread.php?tid=433241)



Teleports me to thin air - Coltmaster - 26.04.2013

Why don't I get teleported to the 24/7?

Код:
if (strcmp("/twenty", cmdtext, true))
	{
		ResetPlayerMoney(playerid);
		GivePlayerMoney(playerid, 29509);
		SetPlayerPos(playerid, -25.884499, -185.868988, 1003.549988);
	    return 1;
	}
	return 0;
It keeps saying unknown command, all my other commands work...


Re: Teleports me to thin air - NicholasA - 26.04.2013

You need to set the interior of the player
Check these websites
http://weedarr.wikidot.com/interior
https://sampwiki.blast.hk/wiki/SetPlayerInterior
Quote:

if (strcmp("/twenty", cmdtext, true))
{
ResetPlayerMoney(playerid);
GivePlayerMoney(playerid, 29509);
SetPlayerInterior(playerid, 17);
SetPlayerPos(playerid, -25.884499, -185.868988, 1003.54998;
return 1;
}
return 0;




Re: Teleports me to thin air - DaRk_RaiN - 26.04.2013

Set the player to the right interior.


Re: Teleports me to thin air - Coltmaster - 26.04.2013

Yes it was the interior, I was unaware about that. Thankyou everyone.