[Help Request] SetSpawnInfo() without team
#1

Hello everyone,

I just want to use the SetSpawnInfo() function without setting a player team!

I want to make a DM game-mode where everybody spawn with random weapons at randon pos'.

I know I can use SetPlayerPos(), SetPlayerSkin() and SetPlayerWeapons() but I think it should be better to use SetSpawnInfo() and SpawnPlayer().

I'll give reput points to people who realy help me!
Reply
#2

SetSpawnInfo(playerid, playerid, the rest of the stuff);

Might work, that would give the player a team equal to his ID...I don't use setspawninfo so i'm not sure if theres a way to make no teams.
Reply
#3

But can I make 500 teams ?
I'm sure I won't have 500 players but ...
Reply
#4

Not sure, I don't see any limit in the limits section of the wiki
Reply
#5

pawn Код:
SetSpawnInfo(playerid, NO_TEAM, 0, 0.0, 0.0, 0.0, 0.0, 0, 0, 0, 0, 0, 0);
I am using that.
Reply
#6

So, i'll try this solution.
It's not realy a clean solution but it's the best i have.

@T0pAz: Is the NO_TEAM constant defined in the samp main librarys (such as MAX_PLAYERS) ? Ur solution looks better and cleanier.
Reply
#7

Maybe

new Float:RandomPlayerSpawns[1][4] = { // than u make 500 spawn just at every spawn +1 [1]
{2181.1780,-1983.2531,13.5512}
};
Reply
#8

Quote:
Originally Posted by jujuv
Посмотреть сообщение
So, i'll try this solution.
It's not realy a clean solution but it's the best i have.

@T0pAz: Is the NO_TEAM constant defined in the samp main librarys (such as MAX_PLAYERS) ? Ur solution looks better and cleanier.
Yes.
Reply
#9

Sorry about this up but i would like to say that the T0pAz solution pertectly works.

I hope, this message will help the ones who have the same question and know how to search .
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)