Advertisement
Luk4s

[FNC] SetPlayerColorByTeam

Feb 22nd, 2013
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.27 KB | None | 0 0
  1. #define COLOR_RED 0xFF0019FF
  2. #define COLOR_WHITE 0xFFFFFFFF
  3.  
  4. stock SetPlayerColorByTeam(playerid)
  5. {
  6.     new color;
  7.     switch(GetPlayerTeam(playerid))
  8.     {
  9.         case 0: color = COLOR_RED;
  10.         case 1: color = COLOR_WHITE;
  11.         case 2: color = -1;
  12.     }
  13.     SetPlayerColor(playerid, color);
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement