Raised This Month: $32 Target: $400
 8% 

Surf Simpsons Pro


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   General Purpose        Approver:   Hawk552 (427)
Firippu
Senior Member
Join Date: Jan 2007
Old 09-15-2009 , 00:12   Surf Simpsons Pro
Reply With Quote #1

Required Map
  1. surf_simpsons_final

Description
  1. This plugin prevents shortcuts from being used, which makes finishing the map more difficult.
  2. Additionally, when a player uses the finished button at the end of the map it will announce with their name that they finished. Preview: http://imgur.com/sx3rlOK

Notes
  1. Once a player uses the finished button it will not display the name of that player anymore until they spawn again. This is to avoid hudmessage abuse. For example, a player staying in the bar pressing the finished button every minute displaying their name.

installation - This plugin is designed to use the map specific plugin method.
  1. Create a new file with shown structure and naming
    PHP Code:
    addons/amxmodx/configs/maps/plugins-surf_simpsons_pro.ini 
  2. Write the plugin file name within the newly created .ini file as shown and save it
    PHP Code:
    surf_simpsons_pro.amxx 
Attached Files
File Type: sma Get Plugin or Get Source (surf_simpsons_pro.sma - 963 views - 1.5 KB)

Last edited by Firippu; 06-05-2019 at 12:32.
Firippu is offline
soolt
BANNED
Join Date: Aug 2009
Location: Lithuania
Old 09-15-2009 , 00:27   Re: Surf Simpsons Pro
Reply With Quote #2

good job but sad that only for one map.
soolt is offline
Send a message via Skype™ to soolt
#8 SickneSS
BANNED
Join Date: Sep 2008
Location: Here
Old 09-15-2009 , 10:53   Re: Surf Simpsons Pro
Reply With Quote #3

lol nice
#8 SickneSS is offline
Send a message via MSN to #8 SickneSS Send a message via Skype™ to #8 SickneSS
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 09-20-2009 , 15:12   Re: Surf Simpsons Pro
Reply With Quote #4

There are a few mistakes and optimizations that can be made, however it is acceptable.

If you would like any information regarding possible adjustments you could make or things you could do to make this better, please feel free to post here or PM me.

Approved.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 09-22-2009 , 19:52   Re: Surf Simpsons Pro
Reply With Quote #5

Changes have been requested via PM.

For starters, inconsistent use of semicolons.

PHP Code:
new const MDL[MaxMDL][0] = 
I'm surprised this works. You should use [] or a constant that will store all of the strings properly.

PHP Code:
    new mapname[32]
    
get_mapname(mapname,31)
    
    if(
equali(mapname,"surf_simpsons_final")) 
Unnecessarily long mapname variable. Shorten it to 20 characters and then pass 19 as the max length for get_mapname().

PHP Code:
new mdl
Avoid creating variables in loops.

PHP Code:
    return FMRES_IGNORED
Meaningless return; this isn't even an FM forward.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
fezh
Veteran Member
Join Date: Dec 2008
Location: BANNED
Old 09-22-2009 , 19:58   Re: Surf Simpsons Pro
Reply With Quote #6

Quote:
Originally Posted by Hawk552 View Post
PHP Code:
    return FMRES_IGNORED
Meaningless return; this isn't even an FM forward.
Quote:
Originally Posted by fakemeta_const
#define FMRES_IGNORED 1 // Calls target function, returns normal value
Quote:
Originally Posted by ham_const
#define HAM_IGNORED 1 /**< Calls target function, returns normal value */
They are equal return values.. I know it's for readability, but I can't see te point of marking it :/
__________________
"There is no knowledge, that is not power"
fezh is offline
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 14:49.


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