13.11.2011, 19:26
pawn Код:
new part[MAX_PLAYER_NAME];
GetPlayerName(playerid,part,MAX_PLAYER_NAME);
new s,f;
s=strfind(part, "[", false);
if(s!=-1)
{
f=strfind(part, "]", false,s);
if(f==-1){part[0]=0;}
else{strmid(part, part, s, f+1);}
}
else {part[0]=0;}