Using/Not using - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Using/Not using (
/showthread.php?tid=228464)
Using/Not using -
Riddick94 - 19.02.2011
Hi!
I've a trouble. I don't know how to make something like.. hm.. When player have something ON he can turn it off in gui with only one line.. i mean..
Toggle clock on. - When off.
Toggle clock off. - When on.
In one line gui. When player turns off the line of gui (one line not two) changing to vice versa.
I think.. you should know what i mean :d
Re: Using/Not using -
Hash [NL-RP] - 19.02.2011
Top of script
Код:
new TIME[MAX_PLAYERS];
A command which i think will be good for you, If your using ZCMD, let me know i'll make it for that.
Код:
if(strcmp(cmd, "/togtime", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if (!TIME[playerid])
{
TIME[playerid] = 1;
SendClientMessage(playerid, 0x006FDD96, "INFO: Time has been disabled.");
// Your function here, to disable the clock.
}
else if (TIME[playerid])
{
TIME[playerid] = 0;
SendClientMessage(playerid, 0x006FDD96, "INFO: Time has been enabled.");
// Your function here, to enable the clock.
}
}
return 1;
}
Re: Using/Not using -
Riddick94 - 19.02.2011
No! I mean.. update Gui dialog and change one line. One line is for On/Off clock.
if(use)status = "Turn off";
else status ="Turn on";
But i don't know how to do that.
Re: Using/Not using -
lavamike - 19.02.2011
So you mean like this for example:
pawn Код:
new string[65];
if(ClockOn[playerid]) format(string, sizeof(string), "1. Other Option\r\n2. Turn clock off\r\n3. Other Option");
else format(string, sizeof(string), "1. Other Option\r\n2. Turn clock on\r\n3. Other Option");
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Title", string, "Select", "Cancel");
Re: Using/Not using -
Riddick94 - 19.02.2011
Okey but.. what about a second.. TextDraw hide? i wan't in the one gui list.
Re: Using/Not using -
Steven82 - 19.02.2011
Try asking in the poland sections for now on
Re: Using/Not using -
Riddick94 - 19.02.2011
Polish guy's don't know how to scripting
Re: Using/Not using -
Riddick94 - 19.02.2011
What i need:
When the player won't to see a TextDraw he'll type a command /td. And now will be show Gui if player have Textdraw1 showed he'll have an option:
Textdraw1 Turn off\nTextdraw2 Turn off (if both of these two textdraws will be on) one textdraw in one line. Options will be update when the player off or on the option.
Textdraw1 Turn off -> player pressing Select and Textdraw1 string changing to Textdraw1 Turn on. I think all of you'll knew what i need.
Lol.. sorry for Double..
Re: Using/Not using -
Riddick94 - 20.02.2011
Somebody please help me. *Bump*
Re: Using/Not using -
Riddick94 - 21.02.2011
*Bump*
/imageshack/i/beztytuudge.jpg/
/imageshack/i/beztytuu2az.jpg/
Read a screen. I need this, please someone help me :/
But in the one dialog i need too hide/show another textdraws. Like panoramic screen.