Spawning
#1

Can anyone plz tell me how to change it soo I can spawn them all different places instead of one
Reply
#2

Use the search function before asking questions.

http://forum.sa-mp.com/index.php?topic=174594.0
Reply
#3

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;
}
Reply
#4

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..
Reply
#5

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.

Reply
#6

pawn Код:
if(GetPlayerSkin(playerid)==0)
{
SetPlayerPos(playerid,...);
//and so on...
Reply
#7

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
Reply
#8

Can someone help me where do I put I'd and and coords and where do I put it all
Reply
#9

Helllllllooooo anyone
Reply
#10

Stop bumping, or you'll be banned, anyway under OnGameModeInit
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)