AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   "Vote" when a map starts (https://forums.alliedmods.net/showthread.php?t=214401)

Spy123 04-26-2013 12:50

"Vote" when a map starts
 
I wan't something like this:

when a map starts,after 20 seconds ( set_task (20.0, "votecvar", 0) ) appears a vote,who ask you: "we play with offside&foul?" and the answers,are like this:

1. Yes,with both
2. Only with foul
3. Only with offside
4. No,without them

if is: 1 -> set_cvar_num ("sj_offside", 1)
set_cvar_num ("sj_foul",1)

2 -> set_cvar_num ("sj_offside", 0)
-> set_cvar_num ("sj_foul",1)

3 -> set_cvar_num ("sj_offside", 1)
-> set_cvar_num ("sj_foul",0)

4 -> set_cvar_num ("sj_offside",0)
-> set_cvar_num ("sj_foul",0)

P.S: sry for my bad english...


All times are GMT -4. The time now is 10:57.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.