Advertisement
Guest User

Untitled

a guest
Jun 28th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.83 KB | None | 0 0
  1. /*
  2.     IZRADIO: Kristijan Stipić
  3.     TIP PROGRAMA: WHIlE petlje sa dvostrukom jednadzbom
  4.     VRIJEME: 11.11.2010
  5.     ZA: Y_LESS programing skills
  6. */
  7.  
  8. #define DULJINA_FORMATA2 128
  9.  
  10. #define formatExToAll(%0,%1) \
  11.     do \
  12.     { \
  13.         new \
  14.         string[DULJINA_FORMATA2]; \
  15.         format(string, sizeof string, %0, %1); \
  16.         ScmToAll(BOJA, string); \
  17.     } \
  18.     while(false)
  19. #define DULJINA_FORMATA 128
  20. #define SCM(%0,%1,%2) SendClientMessage(%2,%1,%0)
  21. #define BOJA 0x00FF14FF
  22.  
  23. #define formatEx(%0,%1,%2) \
  24.     do \
  25.     { \
  26.          new \
  27.          string[DULJINA_FORMATA]; \
  28.          format(string, sizeof string, %1, %2); \
  29.          SCM(string, BOJA, %0); \
  30.     } \
  31.    while(false)
  32.    
  33. public OnPlayerSpawn(playerid)
  34. {
  35.        new
  36.              ime[24]
  37.        ;
  38.        GetPlayerName(playerid, ime, 24);
  39.        formatEx(playerid, "Spawno si se %s", ime);
  40.        return true;
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement