Advertisement
Shiny_

12 groszy, tylko nie płacz, proszę!

Sep 2nd, 2013
261
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.96 KB | None | 0 0
  1. #include <a_samp>
  2. #include <base512>
  3.  
  4. #define NULL        0
  5. #define this->      new
  6. #define class%0(%1)     stock %0(%1)
  7. #define function%0(%1) forward %0(%1); %0(%1)
  8.  
  9. class PlayerName(playerid, Name[MAX_PLAYER_NAME], len = sizeof(Name)) {
  10.     GetPlayerName(playerid, Name, len);
  11.     return Name;
  12. }
  13.  
  14. main() {
  15.     CallLocalFunction("OnPlayerConnect", "d", 0);
  16.     printf("%s dołącza do serwera.", PlayerName(0, "Jezus"));
  17.     return false;
  18. }
  19.  
  20. public OnGameModeInit() {
  21.     return CallLocalFunction("OnFilterScriptInit", ""), printf("WAT");
  22. }
  23.  
  24. public OnPlayerConnect(playerid) {
  25.     CallLocalFunction("OnGameModeInit", "", 0);
  26.     printf("CZEGO?\nMIODU? DO ULA.");
  27.     return true;
  28. }
  29.  
  30. function testing(player, grosik) {
  31.     printf("%s daje %d groszy", PlayerName(player, "Zdzisław"), grosik);
  32.     return true;
  33. }
  34.  
  35. public OnFilterScriptInit() {
  36.     return  CallLocalFunction("@cos", "");
  37. }
  38.  
  39. function @cos() {
  40.     this -> player, grosik = random(max(0, 1));
  41.     return testing(player, grosik);
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement