Jump to content
  • 0

pomoc 2x jeden příkaz = jiný příkaz


FrOsTy14

Dotaz

Zdravím potřeboval bych jak udělat že když napíšu příkaz např /help tak mi to napíše zprávu Zkouška1 a ,když ho napíšu znova tak mi to napíše zkouška12 a pak znova napíšu a hodí to zkouška1.Děkuji

Link to comment
Share on other sites

3 odpovědí na tuto otázku

Recommended Posts

  • 0

např.

new bool:test = true;

dcmd_help(playerid,params[])
{
     if(test)
     {
     SCM(playerid,-1,"U sucks");
     test = false;
     }
     else
     {
     SCM(playerid,-1,"You SUCKS again");
     test = true;
     }
}
Link to comment
Share on other sites

  • 0

or better :d

new bool:test = true;

dcmd_help(playerid,params[])
{
	test = !test;
	SCM(playerid,-1,text ? ("U sucks") : ("You SUCKS again"));
	return 1;
}
Edited by ATomas
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...