Jump to content
Prosíme všetkých užívateľov, ktorý sa chcú opätovne pripojiť na discord aby znovu spárovali svoje účty kliknutím na "Discord" v navigácií a pripojili sa na server Read more... ×
[i]G4M3R[i]

script Pocity Systém

Recommended Posts

Hotovo:

Spoiler

public OnPlayerCommandText(playerid, cmdtext[]) {

	if (!strcmp("/pocit", cmdtext, true)) {

		ShowPlayerDialog(playerid, DIALOG_POCITY, DIALOG_STYLE_INPUT, "Pocity Systém", "Napiš, jaký máš teď pocit", "Potvrdit", "Zavrit");
		return true;
	}


public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) {

	if (dialogid == DIALOG_POCITY) {

		if (!response) return true;
		if (strlen(inputtext) < 3) return SendClientMessage(playerid, -1, "Moc krátký text");
		new 
			nick[MAX_PLAYER_NAME + 1],
			string[144 + 1];
		GetPlayerName(playerid, nick, sizeof nick);
		format(string, sizeof string, "Hráč %s je %s", nick, inputtext);
		SendClientMessageToAll(-1, string);
		return true;
	}

 

 

  • Si děláš prdel? :D 1
  • Smutný 1
  • Haha! 5

Sdílet tento příspěvek


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×