Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SetTimerEx("Vyplaty",cas,0,"i",playerid);
- forward Vyplaty(playerid);
- public Vyplaty(playerid)
- {
- #define cash(%0) random(%0)+5000
- new prachy;
- switch(Povolani[playerid])
- {
- case 0:prachy = cash(5000);//bez povolani
- case 1:prachy = cash(10000);//povoani 1
- .
- .
- .
- .
- case xy: to uz si dodelas podle poctu povolani
- }
- new string[128];
- format(string,128,"[%s] Obdžel jsi %i %s",( Povolani[playerid] == 0) ? "Podpora": "Výplata",prachy,( Povolani[playerid] == 0) ? "$. Najdi si práci!!": "$.");
- SendClientMessage(playerid,-1,string),SetTimerEx("Vyplaty",cas,0,"i",playerid);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement