How can i do this? (random word in the connect message)
#1

Heres what i got..

Код:
	new stringsys [128];
	new pName[MAX_PLAYER_NAME];
   	GetPlayerName(playerid, pName, sizeof(pName));
	format(stringsys, sizeof(stringsys), "[SYSTEM] Your Majesty %s has connected ", pName);
	SendClientMessageToAll(COLOR_YELLOW, stringsys);
Now what i want to do is change "Your Majesty" into a random phrase defined at the top of the script. But im not sure of how to go about this, i tried creating a random float with different phrases in it, but im unsure of how to actually get the phrases into the above line. Could someone possibly help me out with this?
Reply


Messages In This Thread
How can i do this? (random word in the connect message) - by chaosnz - 08.04.2011, 00:08
Re: How can i do this? (random word in the connect message) - by grand.Theft.Otto - 08.04.2011, 02:25

Forum Jump:


Users browsing this thread: 1 Guest(s)