cop system
#5

Check the player's team in OnPlayerSpawn(), then according to their team value, assign the correct weapons/skin.

Example:

Код:
public OnPlayerSpawn(playerid)
{
	if(gTeam[playerid] == TEAM_COP)
	{
		SetPlayerColor(playerid, COLOR_BLUE);
		SetPlayerPos(playerid, 2295.0293,2459.4961,10.8203);
		SetPlayerAmmo(playerid,24,400);
		SetPlayerAmmo(playerid,3,1);
		SetPlayerSkin(playerid, 280);
	}
	return 1;
}
Hope this helps,

Stephen
Reply


Messages In This Thread
cop system - by thuron - 16.02.2009, 13:07
Re: cop system - by Serbish - 16.02.2009, 13:10
Re: cop system - by thuron - 17.02.2009, 13:50
Re: cop system - by Ghett0 - 18.02.2009, 00:55
Re: cop system - by XPlatform - 18.02.2009, 02:11

Forum Jump:


Users browsing this thread: 1 Guest(s)