Teleports me to thin air
#1

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...
Reply
#2

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;

Reply
#3

Set the player to the right interior.
Reply
#4

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


Forum Jump:


Users browsing this thread: 1 Guest(s)