AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Timelimit (https://forums.alliedmods.net/showthread.php?t=85241)

Miko000000 02-07-2009 16:14

Timelimit
 
hello i need help with my code .

Code:

public restart2(id)
{
    counttovote++;
    new speak[10][] = {"ten", "nine", "eight", "seven", "six", "five", "four", "three", "two", "one"};

    if ( counttovote > 10) {
        counttovote = 0;
        return PLUGIN_HANDLED;
    } else {
        if (counttovote > 0 && counttovote <= 10) {
            set_hudmessage(0, 222, 50, -1.0, 0.13, 0, 1.0, 0.94, 0.0, 0.0, 4);
            show_hudmessage(0, "%L", LANG_PLAYER, "DMAP_VOTING_IN_XSEC", 10 - counttovote);
            if (quiet != 1) {
                client_cmd(0, "spk ^"fvox/%s^"", speak[0 +counttovote]);
               
            }
        }
    }
    return PLUGIN_HANDLED;
}

and its read verry faster. i need will slow than (sorry for my bad english)

and its veryy buggy

anakin_cstrike 02-07-2009 16:37

Re: Timelimit
 
Use a task.

PHP Code:

new g_Count 10;
// ...
new temp64 ];            
num_to_wordg_Counttempcharsmaxtemp ) );
formattemp charsmaxtemp ),  "^"vox/%s^""temp );

// ...
g_Count--; 


Miko000000 02-08-2009 05:36

Re: Timelimit
 
ok and i need help . its an indiot mistake and it doesnt work
Code:

register_clcmd("say /restart", "restart", ADMIN_KICK)
and normal player sayed /restart and it work how to i edit it

SnoW 02-08-2009 08:43

Re: Timelimit
 
Quote:

Originally Posted by Miko000000 (Post 757950)
ok and i need help . its an indiot mistake and it doesnt work
Code:

register_clcmd("say /restart", "restart", ADMIN_KICK)
and normal player sayed /restart and it work how to i edit it

That just gets the ADMIN_KICK parameter to the function, but it doesn't do anything with it. You have to still check it in the function.

AntiBots 02-08-2009 08:46

Re: Timelimit
 
PHP Code:

public lala(idlevel)
{
      if( !
access(idlevel) )
          return 
PLUGIN_CONTINUED;
 
[..]
 



xPaw 02-08-2009 08:54

Re: Timelimit
 
PHP Code:

return PLUGIN_CONTINUED;

// ->

return PLUGIN_CONTINUE


Miko000000 02-10-2009 10:24

Re: Timelimit
 
yea i work thanx


All times are GMT -4. The time now is 17:02.

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