Team spawns
#3

Quote:
Originally Posted by Grim_
Посмотреть сообщение
Without any code to build upon or look at, it's difficult to aid you much! The process itself is very simple however, simply check their team id prior to spawning them and set their spawn data appropriately.
Код:
public turaskeiciasi(playerid)
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if(IsPlayerConnected(i))
    {
	TogglePlayerControllable(i,1);
	ResetPlayerWeapons(i);
	ResetPlayerMoney(i);
	GivePlayerMoney(i,100);
	SetPlayerArmour(i,0);
	SetPlayerHealth(i,100);
	GivePlayerWeapon(i,22,300);
	PlayerPlaySound(i,1098,0,0,0);
	SetPlayerInterior(i,3);
	SetPlayerPos(i,2495.8982,-1707.8923,1014.7422);
	SetPlayerColor(i,COLOR_BLUE);
   	SetPlayerInterior(i,6);
	SetPlayerPos(i,2343.0278,-1064.3197,1049.0234);
	SetPlayerColor(i,0xFF000090);
    SetTimer("turasbaigsis", 55000, false);
	redscore = 0;
	bluescore = 0;
    if(turas == 1)
    {
    turas = 2;
    }
    if(turas == 2)
    {
	turas = 1;
    }
    }
    }
	return 1;
}
Here's my code. I removed some useless things because they obviously don't work. I believe the problem is that the id is for every player on the server, and I need help making an id for BLUE and RED teams. Can you show me how to do it?
Reply


Messages In This Thread
Team spawns - by siemka321 - 28.12.2012, 07:27
Re: Team spawns - by Grim_ - 28.12.2012, 07:29
Re: Team spawns - by siemka321 - 28.12.2012, 07:35
Re: Team spawns - by siemka321 - 28.12.2012, 08:18
Re: Team spawns - by Vinninho - 28.12.2012, 09:46
Re: Team spawns - by siemka321 - 28.12.2012, 09:47
Re: Team spawns - by Vinninho - 28.12.2012, 09:49
Re: Team spawns - by siemka321 - 28.12.2012, 17:19
Re: Team spawns - by siemka321 - 28.12.2012, 18:17

Forum Jump:


Users browsing this thread: 2 Guest(s)