23.06.2010, 07:58
i found this tricky but did it a while ago for a race leader im sure you can adapt my code
Код:
//add new name[MAX_PLAYER_NAME],racename[MAX_PLAYER_NAME]; GetPlayerName(playerid,pname,sizeof(pname)); format(racename,sizeof(racename),"%s[1st]",pname); SetPlayerName(playerid,racename); //remove new name[MAX_PLAYER_NAME]; GetPlayerName(playerid,pname,MAX_PLAYER_NAME); if(strfind(pname,"[1st]",false,strlen(pname)-5) !=-1) { strdel(pname,strlen(pname)-5,strlen(pname)); SetPlayerName(a,pname); }