09.06.2013, 11:35
hmm i give you example
put this under OnGameModeInit()
pawn Code:
public OnPlayerUpdate(playerid)
{
if(GetPlayerSkin(playerid) == 280 || 281 || 282)//police skin
{
SetPlayerTeam(playerid,1);// if player use police skin, they are team 1
}
if(GetPlayerSkin(playerid) == 28)//bmydrug skin
{
SetPlayerTeam(playerid,2);// if player use terorrist skin, they are team 2
}
return 1;
}
pawn Code:
public OnGameModeInit()
{
EnableVehicleFriendlyFire();
return 1;
}