09.05.2009, 17:45
pawn Код:
forward IsPlayerName(playerid,name[],iscasesensitive);
public IsPlayerName(playerid,name[],iscasesensitive)
{
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid,pName,sizeof(pName));
if(iscasesensitive) { return strcmp(pName,name,true)? 0 : 1; }
if(!iscasesensitive) { return strcmp(pName,name,false)? 0 : 1; }
return 0;
}