30.04.2011, 23:24
Topo do gamemode:
public:
pawn Код:
enum Names
{
Name[24]
}
new NickName[][Names] =
{
{"aux"},
{"con"},
{"com1"},
{"com2"},
{"com3"}
};
pawn Код:
public OnPlayerConnect( playerid )
{
new Nome[ 24 ];
GetPlayerName( playerid, Nome, sizeof( Nome ) );
for( new i = 0; i <= sizeof NickName; i++ )
{
if( strfind( Nome, NickName[ i ][ Name ], true ) != -1 )
{
if( strlen( Nome ) == strlen( NickName[ i ][ Name ] ) )
{
SendClientMessage( playerid, 0xFFF000AA, "Nick proibido no servidor :/" );
SendClientMessage( playerid, 0xFFF000AA, "Entre com outro nick para poder jogar (:" );
Kick( playerid );
}
}
}
return true;
}