help with changing name
#3

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);
 	}
Reply


Messages In This Thread
help with changing name - by cuvip - 23.06.2010, 01:20
Re: help with changing name - by gtapolicemods - 23.06.2010, 01:23
Re: help with changing name - by (SF)Noobanatior - 23.06.2010, 07:58

Forum Jump:


Users browsing this thread: 1 Guest(s)