Advertisement
Ewolutions

Vyplaty Edited #2

Jun 10th, 2012
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.61 KB | None | 0 0
  1. SetTimerEx("Vyplaty",cas,0,"i",playerid);
  2.  
  3. forward Vyplaty(playerid);
  4. public Vyplaty(playerid)
  5. {
  6.     #define cash(%0) random(%0)+5000
  7.     new prachy;
  8.     switch(Povolani[playerid])
  9.     {
  10.         case 0:prachy = cash(5000);//bez povolani
  11.         case 1:prachy = cash(10000);//povoani 1
  12.         .
  13.         .
  14.         .
  15.         .
  16.         case xy: to uz si dodelas podle poctu povolani
  17.     }
  18.     new string[128];
  19.     format(string,128,"[%s] Obdžel jsi %i %s",( Povolani[playerid] == 0) ? "Podpora": "Výplata",prachy,( Povolani[playerid] == 0) ? "$. Najdi si práci!!": "$.");
  20.     SendClientMessage(playerid,-1,string),SetTimerEx("Vyplaty",cas,0,"i",playerid);
  21.     return 1;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement