[Help Request] SetSpawnInfo() without team -
jujuv - 31.03.2012
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!
Re: [Help Request]SetSpawnInfo() without team -
[ABK]Antonio - 31.03.2012
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.
Re : [REP+] SetSpawnInfo() without team -
jujuv - 31.03.2012
But can I make 500 teams ?
I'm sure I won't have 500 players but ...
Re: [Help Request] SetSpawnInfo() without team -
[ABK]Antonio - 31.03.2012
Not sure, I don't see any limit in the limits section of the wiki
Re: [Help Request] SetSpawnInfo() without team - T0pAz - 31.03.2012
pawn Код:
SetSpawnInfo(playerid, NO_TEAM, 0, 0.0, 0.0, 0.0, 0.0, 0, 0, 0, 0, 0, 0);
I am using that.
Re : [Help Request] SetSpawnInfo() without team -
jujuv - 31.03.2012
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.
Re: [Help Request] SetSpawnInfo() without team -
Randyy - 31.03.2012
Maybe
new Float:RandomPlayerSpawns[1][4] = { // than u make 500 spawn just at every spawn +1 [1]
{2181.1780,-1983.2531,13.5512}
};
Re: Re : [Help Request] SetSpawnInfo() without team - T0pAz - 31.03.2012
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.
Re : [Help Request] SetSpawnInfo() without team -
jujuv - 24.04.2012
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
.