Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include < a_samp >
- #include < zcmd >
- #include < sscanf2 >
- new pTitulus[ MAX_PLAYERS ][ 64 + 1 ];
- CMD:titulus( playerid, params[] ) {
- new Titulus[ 64 + 1 ];
- if( sscanf(params, "s[64]", Titulus) ) return SendClientMessage( playerid, (-1), "HASZNÁLAT: /titulus (szöveg)" );
- if( strlen(Titulus) > 64 ) return 1;
- // ----------------
- format( pTitulus[ playerid ], (64), " < %s >", Titulus );
- return 1;
- }
- public OnPlayerText( playerid, text[] ) {
- new g_szString[ 192 + 1 ];
- format( g_szString, (192), "%s(%d)%s: %s", playerName(playerid), playerid, text );
- SendClientMessageToAll( (-1), g_szString );
- return 0;
- }
- stock playerName( playerid ) {
- new plaName[ 24 + 1 ];
- GetPlayerName( playerid, plaName, (24) );
- return plaName;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement