Spawning - 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: Spawning (
/showthread.php?tid=150429)
Spawning -
[asg]davo - 26.05.2010
Can anyone plz tell me how to change it soo I can spawn them all different places instead of one
Re: Spawning -
Kayaque - 26.05.2010
Use the search function before asking questions.
http://forum.sa-mp.com/index.php?topic=174594.0
Re: Spawning -
ViruZZzZ_ChiLLL - 26.05.2010
Anyways, here it is.
pawn Код:
public OnPlayerSpawn(playerid)
{
switch(random(3)) // number of cases is 3
{
case 0:
{
SetPlayerPos(...);
}
case 1:
{
SetPlayerPos(...);
}
case 2:
{
SetPlayerPos(...);
}
}
return 1;
}
Re: Spawning -
[asg]davo - 26.05.2010
nooo i already looked at that stuff i dont want to spawn to random spawns i want them to spawn at specific placed
so like cj will spawn at CJ's house
denise will spawn at her house
etc..
Re: Spawning -
Kayaque - 26.05.2010
Ah, so AddPlayerClass is what you need.
https://sampwiki.blast.hk/wiki/AddPlayerClass
AddPlayerClass(0, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0); This is the code you're looking for.
Only change out the coords I guess.
Re: Spawning -
[MWR]Blood - 26.05.2010
pawn Код:
if(GetPlayerSkin(playerid)==0)
{
SetPlayerPos(playerid,...);
//and so on...
Re: Spawning -
[asg]davo - 26.05.2010
yes ikarus thankyou u understood thankyou thats what i need
and where do i put it like do i put it under any where
like public OnGameModeInit() or anything
Re: Spawning -
[asg]davo - 30.05.2010
Can someone help me where do I put I'd and and coords and where do I put it all
Re: Spawning -
[asg]davo - 30.05.2010
Helllllllooooo anyone
Re: Spawning -
playbox12 - 30.05.2010
Stop bumping, or you'll be banned, anyway under OnGameModeInit