Üd. Lehet 2x az OnPlayerText?? Mert errort ír
D:\\GTA modok\\Mod\\2ppc2\\ppc\\filterscripts\\id.pwn(16) : error 021: symbol already defined: \"OnPlayerText\"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT
#include <a_samp>
#include <sscanf2>
#include <streamer>
#include <zcmd>
public OnPlayerText(playerid, text[])
{
new estr[128];
format( estr , 128 , \"{ffae00}[%i]{faf8f2}%s\" , playerid , text );
SendPlayerMessageToAll( playerid , estr );
return 0;
}
public OnPlayerText( playerid, text[ ] ) {
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!\" );
return 0;
}
return 1;
}
CMD:text(playerid, params[])
{
new id, txt[128];
if (sscanf(params, \"us[128]\", id, txt)) SendClientMessage(playerid, 0xFF0000AA, \"Használat: /text [id] [szöveg]\");
if (id == INVALID_PLAYER_ID) SendClientMessage(playerid, 0xFF0000AA, \"Nincs ilyen játékos!\");
GameTextForPlayer(id, txt, 1500, 3);
return 1;
}
CMD:fegyvertad65(playerid, params[])
{
new id, fegyoid, tolteny;
if (sscanf(params, \"udd\", id, fegyoid, tolteny)) SendClientMessage(playerid, 0xFF0000AA, \"Használat: /fegyvertad id fegyoid [töltény]\");
else if (id == INVALID_PLAYER_ID) SendClientMessage(playerid, 0xFF0000AA, \"Nincs ilyen játékos!\");
else
{
GivePlayerWeapon(id, fegyoid, tolteny);
SendClientMessage(id, 0x00FF00AA, \"Gyilkos adott neked fegyót!\");
SendClientMessage(playerid, 0x00FF00AA, \"Adtál néki fegyót!\");
}
return 1;
}
CMD:textall(playerid, params[])
{
new txt[128];
if (sscanf(params, \"s[128]\", txt)) SendClientMessage(playerid, 0xFF0000AA, \"Használat: /text [szöveg]\");
GameTextForAll(txt, 3000, 3);
return 1;
}