Team Spawns
#1

Hey all,
I have a question:

What is the 'if' for giving teams other spawns like:

if playeristeam_vagos
{
SetPlayerPosition blablabla
etc...
}

Does someone know what is the 'if' code for that?

SancheZ
Reply
#2

Like this?

pawn Code:
if(GetPlayerTeam(playerid) == 1)
Reply
#3

No, i mean like. If player is Team_Vagos he will spawn somewhere and Team_Grove somewhere else.

Like i seth something like:

If Player is Team_Vagos
{
SetPlayerPos
}


Like that
Reply
#4

//Under OnPlayerSpawn
Code:
if(gTeam[playerid] == TEAM_BEACH) 
{
   SetPlayerPos (playerid, x, y, z);
}
else...
Reply
#5

Quote:
Originally Posted by Ironboy500
//Under OnPlayerSpawn
Code:
if(gTeam[playerid] == TEAM_BEACH) 
{
   SetPlayerPos (playerid, x, y, z);
}
else...
Getting this error:

Code:
P:\EastCoast Real Life ServeR\EastCoast Real Life ServeR\penls0.2\penls0.2\penls0.2\penls0.2\penls0.2\samp03asvr_win32\gamemodes\Ec-rls.pwn(3043) : error 010: invalid function or declaration
Reply
#6

this else... means you need to continue like I did by adding more Teams Spawns.
Reply
#7

Thanks, i already found the problem..!

SancheZ
Reply
#8

np
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)