Stay within the worl boundries - 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: Stay within the worl boundries (
/showthread.php?tid=511076)
Stay within the worl boundries -
herohxd - 03.05.2014
Hey guys, after creating a new script, when testing, my samp just got screwed...
See this image
I got this so far:
pawn Код:
#include <a_samp>
public OnGameModeInit()
{
DisableInteriorEnterExits();
printf("Server loaded");
return 1;
}
public OnPlayerSpawn(playerid)
{
SendClientMessage(playerid,-1,"You spawned");
return 1;
}
Re: Stay within the worl boundries -
brent94 - 03.05.2014
Try adding:
pawn Код:
AddPlayerClass(0, 0.0, 0.0, 0.0, 0.0, 0, 0, 0, 0, 0, 0);
in OnGameModeInit, or anything similar to that. It should remove the world boundaries issue.
Re: Stay within the worl boundries -
StuartD - 03.05.2014
Try adding AddPlayerClass.
https://sampwiki.blast.hk/wiki/AddPlayerClass
Re: Stay within the worl boundries -
herohxd - 03.05.2014
It's working now guys! Thanks!
Re: Stay within the worl boundries -
PinEvil - 03.05.2014
You need a PlayerClass, Because the code you provided spawns the player in an oddball location.