cop system
#1

hello,
I am editing a cop system so i can use it, but if you make yourself cop, and u spawn, or exit a car, you are civilian again.... how can i change that?
Reply
#2

With your text and informations we can help you for sure...
Reply
#3

anyone?
Reply
#4

A) Don't cintuple post
B) Fix the indentation on that crap, it's hard to read
Reply
#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


Forum Jump:


Users browsing this thread: 1 Guest(s)