Advertisement
Guest User

Untitled

a guest
May 25th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. new bool:UsandoCorGay[MAX_PLAYERS];
  2. //topo
  3. }
  4. new Cores[] = // aqui vai as cores aleatorias
  5. {
  6. 0xA0A0A0FF,
  7. 0x9900ffFF,
  8. 0xBCD2EEFF,
  9. 0xf4005bFF,
  10. 0xffff00FF,
  11. 0x00C2ECFF
  12. };
  13.  
  14. SetTimer("Coresdegay", 400, true);
  15.  
  16. //qualqueer lugar
  17. }
  18. forward Coresdegay(playerid);
  19. public Coresdegay(playerid);
  20. {
  21. if(UsandoCorGay[playerid] == true // aqui a bool para quando o player ativar o bagulho
  22. {
  23. new random2 = random(sizeof(Cores));
  24. SetPlayerColor(playerid, random2);
  25. }
  26. return 1;
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement