FamiliaSAMP

FILTERSCRIPT - Prêmio Online [FAMILIASAMP.COM]

Jan 26th, 2016
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. #define FILTERSCRIPT
  2.  
  3. #include <a_samp>
  4.  
  5. #if defined FILTERSCRIPT
  6. // Define ...
  7. #define PremioOnline 10000
  8. // Forward ...
  9. forward PremiosOnline();
  10.  
  11.  
  12. public OnFilterScriptInit()
  13. {
  14. print("\n--------------------------------------");
  15. print(" FS Premio Online by Boliva");
  16. print("--------------------------------------\n");
  17. return 1;
  18. }
  19. public OnPlayerConnect(playerid)
  20. {
  21. SetTimerEx("PremiosOnline", 1200000, true, "i", playerid);
  22. return 1;
  23. }
  24. #else
  25.  
  26. main()
  27. {
  28. print("\n----------------------------------");
  29. print(" FS Premio-Online by Boliva");
  30. print("----------------------------------\n");
  31. }
  32. /*public OnPlayerDeath(playerid, killerid, reason)
  33. {
  34. SetPlayerScore(killerid, GetPlayerScore(killerid)+1);
  35. return 1;
  36. }*/
  37. //Descomente a public acima caso queira level por kill...
  38. #endif
  39. forward PremiosOnline(i);
  40. public PremiosOnline(i)
  41. {
  42. new string[128];
  43. GivePlayerMoney(i, PremioOnline);
  44. format(string, sizeof(string), "{FFFFFF}Você recebeu {00FF00}[R$%d] {FFFFFF}Por ficar online por 20 Minutos.", PremioOnline);
  45. SendClientMessage(i, 0x0000FFFF, string);
  46. return 1;
  47. }
Add Comment
Please, Sign In to add comment