Advertisement
Guest User

Untitled

a guest
Jul 10th, 2012
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. #include < a_samp >
  2. #include < zcmd >
  3. #include < sscanf2 >
  4.  
  5. new pTitulus[ MAX_PLAYERS ][ 64 + 1 ];
  6.  
  7. CMD:titulus( playerid, params[] ) {
  8. new Titulus[ 64 + 1 ];
  9. if( sscanf(params, "s[64]", Titulus) ) return SendClientMessage( playerid, (-1), "HASZNÁLAT: /titulus (szöveg)" );
  10. if( strlen(Titulus) > 64 ) return 1;
  11. // ----------------
  12.  
  13. format( pTitulus[ playerid ], (64), " < %s >", Titulus );
  14. return 1;
  15. }
  16.  
  17. public OnPlayerText( playerid, text[] ) {
  18. new g_szString[ 192 + 1 ];
  19. format( g_szString, (192), "%s(%d)%s: %s", playerName(playerid), playerid, text );
  20.  
  21. SendClientMessageToAll( (-1), g_szString );
  22. return 0;
  23. }
  24.  
  25. stock playerName( playerid ) {
  26. new plaName[ 24 + 1 ];
  27. GetPlayerName( playerid, plaName, (24) );
  28.  
  29. return plaName;
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement