Counter-Strike Federation Welcome , Leecher | RSS | Monday, 25 November 24
A Place Where Player Becomes Developer Home | Sign Up | Log In
[ New messages · Members · Forum rules · Search · RSS ]
  • Page 1 of 1
  • 1
[Share] Choose Mode CS with RadioButton
Grade: Sergeant Nouris_Hamada_103Date: Saturday, 06 June 15, 9:38 PM | Message # 1
Sergeant
Clan: Member
Experience: 50
Status: Offline
Sesuai dengan judulnya langsung saja kita bahas

- Buka Autoplay Media Studio
- Tambahkan 1 Object Button beri nama "Start"
- Tambahkan 2 Object Radio button
- Radio Button 1 beri nama dan juga Text "Death Match"
- Radio Button 2 beri nama dan juga Text "Bomb Missions"

Pada Radio Button "Death Match" klik kanan Properties menuju Tab Script lebih tepatnya di On Click masukan script dibawah ini

Code
RadioButton.SetChecked(this, true);
RadioButton.SetChecked("Death Match", false);

Pada Radio Button "Bomb Missions" klik kanan Properties menuju Tab Script > On Click masukan script dibawah ini


Code
CodeRadioButton.SetChecked(this, true);
RadioButton.SetChecked("Bomb Missions", false);

Pada Button "Start" klik kanan Properties menuju Tab Script > On Click masukan script dibawah ini


Code
DM = RadioButton.GetChecked("Death Match");
BM = RadioButton.GetChecked("Bomb Missions");
if DM ==  true then
File.Rename("disabled-csdm.ini", "plugins-csdm.ini");
File.Rename("plugins-csbm.ini", "disabled-csbm.ini");
elseif BM ==  true then
File.Rename("disabled-csbm.ini", "plugins-csbm.ini");
File.Rename("plugins-csdm.ini", "disabled-csdm.ini");
end

Bisa juga seperti ini

Code
DM = RadioButton.GetChecked("Death Match");
if DM ==  true then
File.Rename("disabled-csdm.ini", "plugins-csdm.ini");
File.Rename("plugins-csbm.ini", "disabled-csbm.ini");
else
File.Rename("disabled-csbm.ini", "plugins-csbm.ini");
File.Rename("plugins-csdm.ini", "disabled-csdm.ini");
end


Request By

Attala


Request? PM


Regards,

By Nouriez Hamada BC



Message edited by Nouris_Hamada_103 - Saturday, 06 June 15, 9:41 PM
 
  • Page 1 of 1
  • 1
Search:

Mirum
sample map