Help me with this command
#1

Код:
	if(strcmp(cmd, "/stranger", true) == 0)
	{
	  SetPlayerName(playerid,"Stranger");
	  return 1;
	}
Well I have been working on this so that when the person does /stranger it makes his name stranger rather then his old name but how would I make it so that if he does /stranger again his old name would come back?

EX:
Tommy types /stranger
tommy's name changes to stranger
tommy types /stranger again
tommy's name changes back to tommy

Does anyone how I would do that?

Thanks,
tommy
Reply
#2

dunno if you can but you would have to check on scripting descussion but try this

if(strcmp(cmd, "/rename", true) == 0)
{
SetPlayerName(playerid,"%s");
return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)