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

ProKreedz 2.31


Post New Thread Reply   
 
Thread Tools Display Modes
a412010
Member
Join Date: Oct 2008
Location: Taipei, Taiwan
Old 07-19-2012 , 22:43   Re: ProKreedz 2.31
Reply With Quote #851

It's nice to see this plugin keeps updating!
btw, how to enable godmode only for slide or specific maps?
a412010 is offline
dasha
Senior Member
Join Date: Apr 2012
Location: \%STEAM -> $_SESSION
Old 07-19-2012 , 23:10   Re: ProKreedz 2.31
Reply With Quote #852

Quote:
Originally Posted by a412010 View Post
It's nice to see this plugin keeps updating!
btw, how to enable godmode only for slide or specific maps?
Untested.

PHP Code:
new const MAPS_NAME[][] = 

    
"slide_1"
    
"slide_2"
    
"map_name"
    
"another_map"
    
"etc",
    
"ggg"

PHP Code:
public GodMode(id)
{
    if(!
is_user_alive(id))
    {
        
kz_chat(id"%L"id"KZ_NOT_ALIVE")
        return 
PLUGIN_HANDLED
    
}    
    
    new 
mapName[32]
    
get_mapnamemapName31)
    
    for( new 
0sizeofMAPS_NAME ); i++ ) {
    if( 
equalmapNameMAPS_NAME] ) )  {
        
    new 
godmode = !get_user_godmode(id)
    
set_user_godmode(idgodmode)
    if(
godmode)
    
detect_cheat(id,"God Mode")
    
kz_chat(id"%L"id"KZ_GODMODE" godmode "ON" "OFF")
    
    return 
PLUGIN_HANDLED
    
    
} else {     
    
    
kz_chat(id"%L"id"KZ_GM_NOT_ALLOWED")
            }
        }
        
    return 
PLUGIN_HANDLED

Quote:
[en]
KZ_GM_NOT_ALLOWED = God Mode is not available in this map
dasha is offline
NucL3ra
Veteran Member
Join Date: Sep 2008
Location: Bucuresti , Romania
Old 07-20-2012 , 04:53   Re: ProKreedz 2.31
Reply With Quote #853

I think he mean to be able to use Godmode and not reset the timer.



PHP Code:
public GodMode(id

    if(!
is_user_alive(id)) 
    { 
        
kz_chat(id"%L"id"KZ_NOT_ALIVE"
        return 
PLUGIN_HANDLED 
    
}     
     
    new 
mapName[32]
    new 
bool:detect=false
    
get_mapnamemapName31
     
    for( new 
0sizeofMAPS_NAME ); i++ ) 
       if( 
equalmapNameMAPS_NAME] ) )  
           
detect=true;
         
    new 
godmode = !get_user_godmode(id
    
set_user_godmode(idgodmode
    if(
godmode && !detect
         
detect_cheat(id,"God Mode"
    
kz_chat(id"%L"id"KZ_GODMODE" godmode "ON" "OFF"
     
         
    return 
PLUGIN_HANDLED 

__________________
My nickname is nucLeaR, I just screwed up at registering and didn't want to change after that X_X.

Last edited by NucL3ra; 07-20-2012 at 04:55.
NucL3ra is offline
Send a message via Yahoo to NucL3ra
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 07-20-2012 , 09:43   Re: ProKreedz 2.31
Reply With Quote #854

Map name is not going to change while plugin is running, so better to check once at plugin_init().

Code:
new const MAPS_ALLOW_GODMODE[ ][ ] = {     "slide_1",      "slide_2",      "map_name",      "another_map",      "etc",     "ggg" }; new bool:g_bAllowGodmodeThisMap; public plugin_init( ) {     new szCurrentMap[ 64 ];     get_mapname( szCurrentMap, charsmax( szCurrentMap ) );         for( new i = 0; i < sizeof( MAPS_ALLOW_GODMODE ) && !g_bAllowGodmodeThisMap; i++ )     {         g_bAllowGodmodeThisMap = bool:equali( szCurrentMap, MAPS_ALLOW_GODMODE[ i ] );     } } public GodMode(id) {     if(!is_user_alive(id))     {         kz_chat(id, "%L", id, "KZ_NOT_ALIVE")         return PLUGIN_HANDLED     }               new godmode = !get_user_godmode(id)     set_user_godmode(id, godmode)     if(godmode && !g_bAllowGodmodeThisMap)          detect_cheat(id,"God Mode")     kz_chat(id, "%L", id, "KZ_GODMODE" , godmode ? "ON" : "OFF")                     return PLUGIN_HANDLED }
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
NucL3ra
Veteran Member
Join Date: Sep 2008
Location: Bucuresti , Romania
Old 07-20-2012 , 09:59   Re: ProKreedz 2.31
Reply With Quote #855

It's true, even better would be to enable godmode when player connects, so they don't type anything. The thing is, almost nobody requested it.
__________________
My nickname is nucLeaR, I just screwed up at registering and didn't want to change after that X_X.
NucL3ra is offline
Send a message via Yahoo to NucL3ra
Petrelli
Junior Member
Join Date: May 2012
Old 07-22-2012 , 15:17   Re: ProKreedz 2.31
Reply With Quote #856

Quote:
Originally Posted by Petrelli View Post
when say /cp you go to your last checkpoint, but direction of the view is not the same when i save position
Quote:
Originally Posted by NucL3ra View Post
No, there's not that option and I didn't add it because I never liked it. If more people request it, I might go for it with CVar.
I saw it on some servers, so I know it was in previous version of ProKreedz by p4ddy, right? can you tell me, when did you remove this function, i want to come back it myself
Petrelli is offline
NucL3ra
Veteran Member
Join Date: Sep 2008
Location: Bucuresti , Romania
Old 07-22-2012 , 15:28   Re: ProKreedz 2.31
Reply With Quote #857

It wasn't. It's on other versions of KZ (like the one XJ uses).
__________________
My nickname is nucLeaR, I just screwed up at registering and didn't want to change after that X_X.
NucL3ra is offline
Send a message via Yahoo to NucL3ra
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 07-22-2012 , 17:00   Re: ProKreedz 2.31
Reply With Quote #858

First time i see someone that don't like to be teleported with the same angles as when he saved...
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
NucL3ra
Veteran Member
Join Date: Sep 2008
Location: Bucuresti , Romania
Old 07-22-2012 , 17:45   Re: ProKreedz 2.31
Reply With Quote #859

Just the first guy I was talking to when I saw your post.
http://i.imgur.com/jRLFW.png

So it's not just me, for sure.
__________________
My nickname is nucLeaR, I just screwed up at registering and didn't want to change after that X_X.
NucL3ra is offline
Send a message via Yahoo to NucL3ra
kp3t3h
Senior Member
Join Date: Feb 2011
Old 07-24-2012 , 12:48   Re: ProKreedz 2.31
Reply With Quote #860

Quote:
Originally Posted by NucL3ra View Post
Just the first guy I was talking to when I saw your post.
http://i.imgur.com/jRLFW.png

So it's not just me, for sure.
i would like it but maybe to be toggled with a cvar
__________________
need help with the following
no.1, no.2, no.3, no.4 no.5
kp3t3h 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 07:18.


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