Fall Thorugh Ground - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Fall Thorugh Ground (
/showthread.php?tid=129587)
Fall Thorugh Ground -
jamesb93 - 22.02.2010
Hey,
On my script, On my local server everything works perfect.
But on my serverffs server you fall through the ground on spawn. This makes no sense.
Anyone know why?
Re: Fall Thorugh Ground -
silvan - 22.02.2010
i think serverffs use linux for sa-mp servers, check if there is something that is uncompatible with linux version of sa-mp. such as plugins
Re: Fall Thorugh Ground -
jamesb93 - 23.02.2010
Nah, Not the case,
It's spawning in interiors that the problem.
Re: Fall Thorugh Ground -
silvan - 23.02.2010
erm try to make " SetPlayerInterior " function BEFORE "SetPlayerPos"
i guess that might fix the problem, also make sure that the interior is solid, because some interiors you might fall from them.
Re: Fall Thorugh Ground -
jamesb93 - 23.02.2010
Already tryed that.
Re: Fall Thorugh Ground -
gotenks918 - 23.02.2010
Are you spawning them on user made objects?
Re: Fall Thorugh Ground -
jamesb93 - 24.02.2010
Nope
OnPlayerSpawn
pawn Код:
if(Classid[playerid] == 0 || Classid[playerid] == 1 || Classid[playerid] == 2 || Classid[playerid] == 3 || Classid[playerid] == 4)
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, -180.7331,1034.4825,19.7422);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid,31,350);
GivePlayerWeapon(playerid,22, 100);
GivePlayerWeapon(playerid,1, 0);
}
if(Classid[playerid] == 5 || Classid[playerid] == 6 || Classid[playerid] == 7 || Classid[playerid] == 8 || Classid[playerid] == 9 || Classid[playerid] == 10)
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 15.7948,1518.3596,13.5336);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid,30,260);
GivePlayerWeapon(playerid,29,230);
GivePlayerWeapon(playerid,8, 0);
}
The coords/interiors aren't the same since I took ou the interior spawning to outside.