Raised This Month: $ Target: $400
 0% 

Timelimit


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Miko000000
Senior Member
Join Date: Jul 2008
Location: Slovakia
Old 02-07-2009 , 16:14   Timelimit
Reply With Quote #1

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

Last edited by Miko000000; 02-07-2009 at 16:20.
Miko000000 is offline
Send a message via ICQ to Miko000000 Send a message via Skype™ to Miko000000
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 02-07-2009 , 16:37   Re: Timelimit
Reply With Quote #2

Use a task.

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

// ...
g_Count--; 
__________________

anakin_cstrike is offline
Miko000000
Senior Member
Join Date: Jul 2008
Location: Slovakia
Old 02-08-2009 , 05:36   Re: Timelimit
Reply With Quote #3

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

Last edited by Miko000000; 02-08-2009 at 06:23.
Miko000000 is offline
Send a message via ICQ to Miko000000 Send a message via Skype™ to Miko000000
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 02-08-2009 , 08:43   Re: Timelimit
Reply With Quote #4

Quote:
Originally Posted by Miko000000 View Post
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.
SnoW is offline
Send a message via MSN to SnoW
AntiBots
Veteran Member
Join Date: May 2008
Location: Brazil
Old 02-08-2009 , 08:46   Re: Timelimit
Reply With Quote #5

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

__________________
AntiBots is offline
Send a message via ICQ to AntiBots Send a message via MSN to AntiBots Send a message via Skype™ to AntiBots
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 02-08-2009 , 08:54   Re: Timelimit
Reply With Quote #6

PHP Code:
return PLUGIN_CONTINUED;

// ->

return PLUGIN_CONTINUE
__________________
xPaw is offline
Miko000000
Senior Member
Join Date: Jul 2008
Location: Slovakia
Old 02-10-2009 , 10:24   Re: Timelimit
Reply With Quote #7

yea i work thanx
Miko000000 is offline
Send a message via ICQ to Miko000000 Send a message via Skype™ to Miko000000
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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