Raised This Month: $ Target: $400
 0% 

Round Restart v2.2


Post New Thread Reply   
 
Thread Tools Display Modes
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 04-06-2009 , 08:40   Re: Round Restart v1.2
Reply With Quote #11

Removed AMXX file. Do not upload it again.

Give credit where credit is due otherwise this could be trashed/unapproved.
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
dorin2oo7
Senior Member
Join Date: Jun 2008
Location: Sibiu, Romania
Old 04-06-2009 , 17:12   Re: Round Restart v1.2
Reply With Quote #12

Quote:
Originally Posted by anakin_cstrike View Post
Original plugin made by Alka, no credits though. click
Is possible that the plugin I used to learn the basic scripting was first made by Alka but I didn't have him as author inside *.sma

Any plugin I posted is made by inspiring from others, most of them without remembering the real creator because it was long ago !

Quote:
Originally Posted by tuty View Post
hey dorin, you should try this before making a new plugin http://forums.alliedmods.net/showthread.php?t=85274

and remove the amxx file
THX tuty ;)
__________________

Last edited by dorin2oo7; 04-06-2009 at 17:24.
dorin2oo7 is offline
Old 04-06-2009, 17:15
dorin2oo7
This message has been deleted by dorin2oo7.
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 04-06-2009 , 17:29   Re: Round Restart v1.2
Reply With Quote #13

Quote:
Originally Posted by dorin2oo7 View Post
Is possible that the plugin I used to learn the basic scripting was first made by Alka but I didn't have him as author inside *.sma

Any plugin I posted is made by inspiring from others, most of them without remembering the real creator because it was long ago !
In this case, you must give credits to Alka as there are lines that match exactly to Alka's code.
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 04-07-2009 , 06:01   Re: Round Restart v1.2
Reply With Quote #14

Use get_gametime() from core.
__________________

anakin_cstrike is offline
dorin2oo7
Senior Member
Join Date: Jun 2008
Location: Sibiu, Romania
Old 04-07-2009 , 17:22   Re: Round Restart v1.2
Reply With Quote #15

Quote:
Originally Posted by YamiKaitou View Post
In this case, you must give credits to Alka as there are lines that match exactly to Alka's code.
I allready gived credits to alka ;)

Quote:
Originally Posted by anakin_cstrike View Post
Use get_gametime() from core.
Will appear in the new version that will be a cleaner code...
__________________

Last edited by dorin2oo7; 04-07-2009 at 22:42.
dorin2oo7 is offline
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 04-08-2009 , 03:34   Re: Round Restart v1.2
Reply With Quote #16

Also you can make a definition for this (the interval)
Code:
if(Time - g_LastRestart[id] < 20.0)
__________________

anakin_cstrike is offline
dorin2oo7
Senior Member
Join Date: Jun 2008
Location: Sibiu, Romania
Old 04-09-2009 , 17:24   Re: Round Restart v1.3
Reply With Quote #17

New Changes

View the Changelog at the end of the first post
__________________
dorin2oo7 is offline
Nextra
Veteran Member
Join Date: Apr 2008
Location: Germany
Old 04-09-2009 , 18:22   Re: Round Restart v1.0
Reply With Quote #18

Quote:
Originally Posted by Nextra View Post
- Cache the mapname at startup, won't change.
You could still implement this. Currently you use get_mapname each time the command is executed. The map, however, won't change during runtime so you can safely store get_mapname once on plugin_init to use it later.

PHP Code:
new g_Map[32]

public 
plugin_init( )
{
    
//...
    
get_mapnameg_Mapcharsmax(g_Map) );

And then:
PHP Code:
public say_restartidlevelcid )
{
    
//...
    
print_color(0"%L"LANG_PLAYER"RR_MSG2"g_Map );
    
//...

__________________
In Flames we trust!
Nextra is offline
dorin2oo7
Senior Member
Join Date: Jun 2008
Location: Sibiu, Romania
Old 04-09-2009 , 20:30   Re: Round Restart v1.0
Reply With Quote #19

Quote:
Originally Posted by Nextra View Post
- Cache the mapname at startup, won't change
v1.4 Update
__________________
dorin2oo7 is offline
Nextra
Veteran Member
Join Date: Apr 2008
Location: Germany
Old 04-10-2009 , 03:34   Re: Round Restart v1.4
Reply With Quote #20

You forgot to remove the old get_mapname and map array in the restart function.
__________________
In Flames we trust!
Nextra is offline
Reply



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 09:16.


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