08.04.2011, 00:08
Heres what i got..
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?
Код:
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);