31.01.2010, 08:41
edit - you reedited your code as i was posting. The last part still stands.
You have no if statements in here.
So whenever a player connects you do all of these.
You set player team 1, colour 0x95DFECFF then reset team 2 and colour to 0x33AA33AA.
SetPlayerTeam(playerid, 1);
SetPlayerColor(playerid, 0x95DFECFF);
SetPlayerTeam(playerid, 2);
SetPlayerColor(playerid, 0x33AA33AA);
If you didn't notice the lack of if statements then here is your solution:
Are you a scripting beginner?
https://sampwiki.blast.hk/wiki/Main_Page
You have no if statements in here.
So whenever a player connects you do all of these.
You set player team 1, colour 0x95DFECFF then reset team 2 and colour to 0x33AA33AA.
SetPlayerTeam(playerid, 1);
SetPlayerColor(playerid, 0x95DFECFF);
SetPlayerTeam(playerid, 2);
SetPlayerColor(playerid, 0x33AA33AA);
If you didn't notice the lack of if statements then here is your solution:
Are you a scripting beginner?
https://sampwiki.blast.hk/wiki/Main_Page