Advertisement
Shiny_

1 grosik.

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