09.05.2009, 04:13
pawn Код:
//place outside of any callbacks, most commonly on the top below #includes
IsPlayerName(playerid,name[])
{
new tmp[MAX_PLAYER_NAME];
GetPlayerName(playerid,tmp,sizeof(tmp));
if(!strcmp(tmp,name,false))return 1;
return 0;
}
//use
public OnPlayerConnect(playerid)
{
if(IsPlayerName(playerid,"[BaD]AssMcGee"))
{
SendClientMessage(playerid,0xFF0000FF,"YOU'RE FAT!");
}
return 1;
}