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 str[ 192 + 1 ];format( str, (192), \"%s(%d)%s: %s\", na(playerid), playerid, pTitulus[ playerid ], text );SendPlayerMessageToAll(playerid,str ); return 0;}
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 str[ 192 + 1 ]; format( str, (192), \"%s(%d)%s: %s\", na(playerid), playerid, pTitulus[ playerid ], text ); SendClientMessageToAll(0x33AA33AA ,str ); return 0;}
#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, pTitulus[ playerid ], text ); SendClientMessageToAll( (-1), g_szString ); return 0;} stock playerName( playerid ) { new plaName[ 24 + 1 ]; GetPlayerName( playerid, plaName, (24) ); return plaName;}
Tessék itt egy titulus szkript nem tudom ki készítette de jó . . . #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, pTitulus[ playerid ], text ); SendClientMessageToAll( (-1), g_szString ); return 0;} stock playerName( playerid ) { new plaName[ 24 + 1 ]; GetPlayerName( playerid, plaName, (24) ); return plaName;}
public OnPlayerText(playerid, text[]){ if(PlayerData[playerid][Muted]) return SendClientMessage(playerid, -1, \"Le vagy némítva, így nem veszélhetsz\"), 0; if(strlen(pTitulus[playerid]) != 0) { new g_szString[ 192 + 1 ]; format( g_szString, (192), \"%s(%d)%s: %s\", na(playerid), playerid, pTitulus[ playerid ], text ); SendPlayerMessageToAll(playerid,g_szString ); return 0; } else { new e[128]; format(e,sizeof(e),\"(%d) %s\",playerid,text); SendPlayerMessageToAll(playerid, e); return 0; } if(!strcmp(text, reactionstr)) { if(ReactionActive) ReactionWin(playerid); } new iDots, iDDs, iNums; for( new l = strlen( text ), p; p < l; ++p ) { if( text[ p ] == \'.\' ) ++iDots; if( text[ p ] == \':\' ) ++iDDs; if( \'0\' <= text[ p ] <= \'9\' ) ++iNums; } if( iDots == 3 && iDDs == 1 && iNums >= 10 ) { SendClientMessage( playerid, 0xFF0000AA, \"Ne itt reklámozz!\" ); SendClientMessageToAll(COLOR_GREEN,\"Valaki ki lett bannolva hirdetésért!\"); BanEx(playerid,\"Hirdetés \"); return 0; } return 0;}
C:\\Documents and Settings\\X\\Dokumentumok\\party.pwn(2196) : warning 215: expression has no effectC:\\Documents and Settings\\X\\Dokumentumok\\party.pwn(2204) : warning 225: unreachable codePawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase2 Warnings. [/quote]Sorok : 2196: SendPlayerMessageToAll(playerid,g_szString ),0;2204: if(!strcmp(text, reactionstr))