13.02.2010, 19:28
anyway has auto capitalize fuction of player name. so.. when he joins james_bond he gets changed to James_Bond
new gname[MAX_PLAYER_NAME]; GetPlayerName(playerid,gname,sizeof gname); toupper(gname[0]); SetPlayerName(playerid,gname);
public OnPlayerConnect(playerid)
{
new Name[MAX_PLAYER_NAME];
GetPlayerName(playerid, Name, sizeof(Name));
Name[0] = toupper(Name[0]);
Name[strfind(Name, "_", true) + 1] = toupper(Name[strfind(Name, "_", true) + 1]);
SetPlayerName(playerid, Name);
return true;
}