13.08.2018, 17:45
I don\'t think your code will worked! but you are not defined them! So I hope If you following me like you did! To creating a more factions! In same point!
PHP Code:
//In the HIT command add this:
else if(SWAT(GetPlayerSkin(ID)))
{
SetTimerEx("SWATCOLOR", 1000, true, "i", ID);
colorchanged[ID] = COLOR_LIGHTBLUE;
return 1;
}
//As you created a civilian and follow all skins by this Then
forward SWATCOLOR(playerid);
public SWATCOLOR(playerid)
{
switch(colorchanged[playerid])
{
case COLOR_BLACK:
{
SetPlayerColor(playerid, COLOR_LIGHTBLUE);
colorchanged[playerid] = COLOR_LIGHTBLUE;
}
case COLOR_LIGHTBLUE:
{
SetPlayerColor(playerid, COLOR_BLACK);
colorchanged[playerid] = COLOR_BLACK;
}
}
return 1;
}
//NOTE: Do this and it will be worked! I hope you understand..

