Raised This Month: $51 Target: $400
 12% 

Surf GodMode [03/04/10]


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Fun Stuff       
ILUSION
Senior Member
Join Date: Oct 2006
Location: Argentina
Old 02-27-2010 , 18:26   Surf GodMode [03/04/10]
Reply With Quote #1

Surf GodMode 1.5


Description:
This plugin allows users to get godmode, they can't attack and can't be attacked. Usefull for surf-kill servers.
The plugin has delay to prevent abuse from users.
GodMode users has yellow glow to identify from the rest.

Commands:
say /godmode

CVARs:
amx_surf_godmode < 0: Disabled > < 1: Enabled > (Default: 1)
amx_surf_wait < Time to wait to use again the god mode (in seconds) > (Default: 120)

Multilingual:
[en]: ILUSION
[es]: ILUSION
[sv]: Kanatzu
[ru]: CKOTuHA
[l33t]: Kanatzu
[ro]: Glist3r
[de]: SeToY
[nl]: crazyeffect
[bg]: papyrus_kn
[sk]: i.898.i
[cz]: i.898.i
[fr]: eVerup
[tr]: shizLa
[sr]: SyoncMaster
[lt] : Kukulis :*

Submit your translation

Changelog:
27/02/2010: First public release. v1.0
28/02/2010: Fixed some bugs (thanks ConnorMcLeod). v1.2
28/02/2010: Changed LANG_PLAYER -> id (fezh). v1.3
27/03/2010: Fixed some bugs in /godmode command. Now if you're dead you can disable GodMode. Added Godmode glow when you respawn. v1.4
03/04/2010: Added map check. Now the plugin only works in surf maps. v1.5
Attached Files
File Type: sma Get Plugin or Get Source (surf_godmode.sma - 949 views - 3.0 KB)
File Type: txt surf_godmode.txt (6.8 KB, 386 views)

Last edited by ILUSION; 04-03-2010 at 01:29.
ILUSION is offline
lucas_7_94
Leche Loco
Join Date: Mar 2009
Location: Argentina
Old 02-27-2010 , 18:50   Re: Surf GodMode
Reply With Quote #2

Yeaaa great work , perfect from kill servers , excelent .

[ES]

Para cuando el flashero ? xD
__________________
ATWWMH - MiniDuels
Madness is like gravity, just need a little push.
lucas_7_94 is offline
Send a message via Skype™ to lucas_7_94
kanatzu
Veteran Member
Join Date: Oct 2007
Location: Sweden
Old 02-27-2010 , 19:26   Re: Surf GodMode
Reply With Quote #3

LoL, i dident realized it was such a great plugin i translated until now.. This is hardcore man!
__________________




Quote:
Originally Posted by wrecked_ View Post
Stop saying words before I sodomize you with a cucumber.
kanatzu is offline
Send a message via MSN to kanatzu
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 02-27-2010 , 19:40   Re: Surf GodMode
Reply With Quote #4

Just to let you know, default params for set_user_rendering(id) are wrong, you would have better to specify them :

set_user_rendering(id, kRenderFxNone, 0, 0, 0, kRenderNormal, 0);
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
ILUSION
Senior Member
Join Date: Oct 2006
Location: Argentina
Old 02-27-2010 , 20:13   Re: Surf GodMode
Reply With Quote #5

Quote:
Originally Posted by ConnorMcLeod View Post
Just to let you know, default params for set_user_rendering(id) are wrong, you would have better to specify them :

set_user_rendering(id, kRenderFxNone, 0, 0, 0, kRenderNormal, 0);
Thanks. Fixed
ILUSION is offline
kanatzu
Veteran Member
Join Date: Oct 2007
Location: Sweden
Old 02-27-2010 , 20:34   Re: Surf GodMode
Reply With Quote #6

Nvm my last PM


Edit: The plugin works
__________________




Quote:
Originally Posted by wrecked_ View Post
Stop saying words before I sodomize you with a cucumber.

Last edited by kanatzu; 02-27-2010 at 20:37.
kanatzu is offline
Send a message via MSN to kanatzu
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 02-28-2010 , 08:03   Re: Surf GodMode
Reply With Quote #7

You haven't fixed it :

Code:
public cmdGodMode(id) {     if (!get_pcvar_num(enabled))     {         client_print(id, print_chat, "%L", LANG_PLAYER, "GODMODE_DISABLED");         return PLUGIN_HANDLED;     }         if (!is_user_alive(id))     {         client_print(id, print_chat, "%L", LANG_PLAYER, "GODMODE_ALIVE_ONLY");         return PLUGIN_HANDLED;     }            new delay = get_pcvar_num(timetowait);     new wait = get_systime() - g_time[id];         if (!g_godmode[id]  && delay > wait)     {         client_print(id, print_chat, "%L", LANG_PLAYER, "GODMODE_WAIT", delay - wait);         return PLUGIN_HANDLED;     }         if (g_godmode[id])     {         client_print(id, print_chat, "%L", LANG_PLAYER, "GODMODE_OFF");
        set_user_rendering(id);
        g_godmode[id] = false;         g_time[id] = get_systime();         return PLUGIN_CONTINUE;     }         set_user_rendering(id, kRenderFxGlowShell, 255, 255, 50, kRenderNormal, 25);     client_print(id, print_chat, "%L", LANG_PLAYER, "GODMODE_ON");     g_godmode[id] = true;         return PLUGIN_CONTINUE; }
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
fezh
Veteran Member
Join Date: Dec 2008
Location: BANNED
Old 02-28-2010 , 09:36   Re: Surf GodMode
Reply With Quote #8

Just a little fix, you should always use id instead of LANG_PLAYER, since the last one should be used only when there is no id, aka 0.
__________________
"There is no knowledge, that is not power"
fezh is offline
ILUSION
Senior Member
Join Date: Oct 2006
Location: Argentina
Old 02-28-2010 , 18:11   Re: Surf GodMode
Reply With Quote #9

Quote:
Originally Posted by ConnorMcLeod View Post
You haven't fixed it :

Code:
public cmdGodMode(id) {     if (!get_pcvar_num(enabled))     {         client_print(id, print_chat, "%L", LANG_PLAYER, "GODMODE_DISABLED");         return PLUGIN_HANDLED;     }         if (!is_user_alive(id))     {         client_print(id, print_chat, "%L", LANG_PLAYER, "GODMODE_ALIVE_ONLY");         return PLUGIN_HANDLED;     }            new delay = get_pcvar_num(timetowait);     new wait = get_systime() - g_time[id];         if (!g_godmode[id]  && delay > wait)     {         client_print(id, print_chat, "%L", LANG_PLAYER, "GODMODE_WAIT", delay - wait);         return PLUGIN_HANDLED;     }         if (g_godmode[id])     {         client_print(id, print_chat, "%L", LANG_PLAYER, "GODMODE_OFF");
        set_user_rendering(id);
        g_godmode[id] = false;         g_time[id] = get_systime();         return PLUGIN_CONTINUE;     }         set_user_rendering(id, kRenderFxGlowShell, 255, 255, 50, kRenderNormal, 25);     client_print(id, print_chat, "%L", LANG_PLAYER, "GODMODE_ON");     g_godmode[id] = true;         return PLUGIN_CONTINUE; }
OMG Thanks again.


New translations added.

Last edited by ILUSION; 02-28-2010 at 18:49.
ILUSION is offline
fezh
Veteran Member
Join Date: Dec 2008
Location: BANNED
Old 02-28-2010 , 18:38   Re: Surf GodMode
Reply With Quote #10

Quote:
Originally Posted by ILUSION View Post
OMG Thanks again.



http://forums.alliedmods.net/showpos...32&postcount=4

New translations added.
And that has to do with...?

Quote:
Originally Posted by Arkshine View Post
- LANG_PLAYER -> id ; LANG_PLAYER should be used for all players ( 0 as id )
And anyway you can check every default AMXX plugin.
__________________
"There is no knowledge, that is not power"
fezh 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 20:53.


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