SA-MP Forums Archive
Changing the Spawn Position and Weapons at start - 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: Changing the Spawn Position and Weapons at start (/showthread.php?tid=83446)



Changing the Spawn Position and Weapons at start - MarqueZ92 - 25.06.2009

Hey guys!

As you can see from the title, i want to know how to change the spawn position at the Gamemode Public Enemy SF. I think the place where to edit will be the same at PENLS, but i dont know wich lines to edit.

Im not a very good scripter, so i ask you pro's. By the way, where can i remove the guns of the new spawned player? I want that new players dont have guns at the beginning.

Regards


Re: Changing the Spawn Position and Weapons at start - shady91 - 25.06.2009

its simple work go to onplayer spawn and change like that and for guns set like to teams or to all player or something its pritty easy mate. but no point me guessing how you will do it coz i duno what your codes like.


Re: Changing the Spawn Position and Weapons at start - MarqueZ92 - 25.06.2009

I changed so much coordinates but nothing worked.


Re: Changing the Spawn Position and Weapons at start - dice7 - 25.06.2009

https://sampwiki.blast.hk/wiki/AddPlayerClass

It goes under GameModeInit()


Re: Changing the Spawn Position and Weapons at start - MarqueZ92 - 25.06.2009

I already have that under OnGameModeInit

Quote:

{
AddPlayerClass(Peds[i][0],-1555.2689,1168.2203,7.1875);
//if (gdebug){printf("DEBUG ped (%d) added", i);}
}

I get a lot of warnings when i add the one from Wiki too.


Re: Changing the Spawn Position and Weapons at start - dice7 - 25.06.2009

Add more of them. And show your AddPlayerClass lines


Re: Changing the Spawn Position and Weapons at start - MarqueZ92 - 26.06.2009

I got a lot of warnings when i compile.


Re: Changing the Spawn Position and Weapons at start - dice7 - 26.06.2009

Show your code ffs


Re: Changing the Spawn Position and Weapons at start - shady91 - 26.06.2009

dont show your code copy the warning so i can see them mate.


Re: Changing the Spawn Position and Weapons at start - MarqueZ92 - 28.06.2009

Quote:
Originally Posted by Shady91
dont show your code copy the warning so i can see them mate.
Nvm, thank you all anyway i think i got it to work.