SA-MP Forums Archive
Somebody help me please? - 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: Somebody help me please? (/showthread.php?tid=84267)



Somebody help me please? - Mr_Finnigan - 29.06.2009

public OnGameModeInit() i have
Код:
CreateObject(18552, -1981.885986, 881.869263, 44.190384, 0.0000, 0.0000, 269.7592);
public OnPlayerSpawn(playerid) i have
Код:
SetPlayerCheckpoint(playerid, -1990.0458,884.0585,45.2031, 3.0);
Then i have this at the bottom of my script
Код:
public OnPlayerEnterCheckpoint(playerid)
{
  SetPlayerPos(playerid,286.148986,-40.644397,1001.515625);
  SetPlayerInterior(playerid, 1);
  return 1;
}
But when i go into red marker nothing happens,does anyone know what im doing wrong?

I want someone to enter checkpoint and end up inside the ammunation


Re: Somebody help me please? - Ignas1337 - 29.06.2009

umm, everything looks fine... what's up with the object? oh btw I go to bed now, bye


Re: Somebody help me please? - Mr_Finnigan - 29.06.2009

Quote:
Originally Posted by Thanatos
umm, everything looks fine... what's up with the object? oh btw I go to bed now, bye
I tried adding it to a different gamemode and hey it works,go figure


New problem then im set,2 actually

I created the ammunation myself
Код:
CreateObject(18552, -1981.885986, 881.869263, 44.190384, 0.0000, 0.0000, 269.7592);
When i walk into the ammunation there is no weapon selling guy that say's "know it.love it" or "the revolution is coming my friends" and so on and no red marker.
2cnd thing is when i exit i end up outside ammunation near cluckin bell the only"official" ammu in san firroe,how do i set it so he ends up outside of ammu i added?