AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   VSH / Freak Fortress (https://forums.alliedmods.net/forumdisplay.php?f=154)
-   -   FF2 Just a short question (https://forums.alliedmods.net/showthread.php?t=316777)

JuegosPablo 06-09-2019 14:53

Just a short question
 
Somebody know how i can remove the option random from Charset Vote?

Batfoxkid 06-09-2019 16:07

Re: Just a short question
 
Haven't actually tested this but you can remove this line.
PHP Code:

public Action Timer_DisplayCharsetVote(Handle timer)
{

...

    
Handle Kv=CreateKeyValues("");
    
FileToKeyValues(Kvconfig);
    
int totalcharsets;
>>  
AddMenuItem(menu"Random""Random");
    do
    {
        
total++;

... 


JuegosPablo 06-09-2019 17:54

Re: Just a short question
 
Quote:

Originally Posted by Batfoxkid (Post 2655038)
Haven't actually tested this but you can remove this line.
PHP Code:

public Action Timer_DisplayCharsetVote(Handle timer)
{

...

    
Handle Kv=CreateKeyValues("");
    
FileToKeyValues(Kvconfig);
    
int totalcharsets;
>>  
AddMenuItem(menu"Random""Random");
    do
    {
        
total++;

... 


i did it but the problem is now the pack1 (option 1) are random,second pack are pack 1 etc

Batfoxkid 06-09-2019 22:16

Re: Just a short question
 
Try replacing this line with this,
FF2CharSet=param1;

PHP Code:

public int Handler_VoteCharset(Handle menuMenuAction actionint param1int param2)
{
    if(
action==MenuAction_VoteEnd)
    {
>>      
FF2CharSet=param1 param1-validCharsets[GetRandomInt(1FF2CharSet)]-1;  //If param1 is 0 then we need to find a random charset

        
char nextmap[32];
        
GetConVarString(cvarNextmapnextmapsizeof(nextmap));
        
GetMenuItem(menuparam1FF2CharSetStringsizeof(FF2CharSetString));

... 


JuegosPablo 06-10-2019 00:02

Re: Just a short question
 
it works but now if somebody know how make the order of charset random example

1)pack 5
2)pack 3
3)Pack 1
etc

like that that gonna help me a lot

Thank you batfox for helping on the old problem


All times are GMT -4. The time now is 09:30.

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