toribio

toribio

Nov 21st, 2008
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.59 KB | None | 0 0
  1. //no topo:
  2. forward @PayDay();
  3. //no OnGameModeInit:
  4. SetTimer("@PayDay", 60000*15, 1); //a cada 15 minutos (mude o "15" caso queira outro time...)
  5.  
  6. //no final do mode:
  7. @PayDay()
  8. {
  9.     for(new i; i < MAX_PLAYERS; i++)
  10.     {
  11.         if(gTeam[i] == TEAM_POLICIAL)
  12.         {
  13.             GivePlayerMoney(i, 5000);
  14.             SendClientMessage(i, 0xFFF000AA, "Voc� recebeu seu sal�rio: $5000.");
  15.         } else if(gTeam[i] == TEAM_PEDREIRO)
  16.         {
  17.             GivePlayerMoney(i, 1);
  18.             SendClientMessage(i, 0xFFF000AA, "Voc� recebeu seu sal�rio: $1."); //kkkk
  19.         } //etc
  20.     }
  21. }
Add Comment
Please, Sign In to add comment