Advertisement
kenon125

Crinado Orgs by ZeuS

Nov 24th, 2011
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.54 KB | None | 0 0
  1. // No Topo:
  2.  
  3. #define ORG_DEFAULT  0
  4.  
  5. #define ORG_REPORTER 1
  6.  
  7. new Org[MAX_PLAYERS];
  8.  
  9.  
  10. // Aonde você deseja setar a Org do jogador:
  11.  
  12. Org[playerid] = ORG_REPORTER;
  13.  
  14.  
  15. // Função que você usa para verificar se ele é Reporter:
  16.  
  17. if(Org[playerid] == ORG_REPORTER)
  18. {
  19.   // Funções
  20. }
  21. else
  22. {
  23.   SendClientMessage(playerid, 0xFFFFFFFF, "Você não é Reporter.");
  24. }
  25.  
  26.  
  27. // Digamos que você queira setar/disponiblizar alguma coisa para todos os Reporteres:
  28.  
  29. for(new i = 0; i < MAX_PLAYERS; i++)
  30. {
  31.   if(Org[i] == ORG_REPORTER)
  32.   {
  33.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement