AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Godmode problem (https://forums.alliedmods.net/showthread.php?t=90033)

mAr7obg 04-13-2009 07:10

Godmode problem
 
I followed, when a map change or kz_longjumps kz_longjumps2 or any other map I have godmod, but when shifted to climto_falling no godmod.
Sorry for my english
Code:

#include <amxmodx>
#include <fun>
#include <colorchat>

 
public plugin_init() {
register_plugin("Auto command on maps", "0.1", "He3aBuCuM")
set_task(35.0, "get_map", 12785)

}
public client_connect(id) {
if(is_user_connected(id)) {
set_user_godmode(id, 1)
}
}
public get_map() {
new mapname[32]
get_mapname(mapname, 31)
if(equal(mapname, "kz_longjumps")) {
ColorChat(0,BLUE,"[Kz] Na tazi karta imash Hook & Matrix Jump");
set_user_godmode(0,1);
}
if(equal(mapname, "kz_longjumps2")) {
ColorChat(0,BLUE,"[Kz] Na tazi karta imash Hook & Matrix Jump");
set_user_godmode(0,1);
}
if(equal(mapname, "clintmo_falling")) {
ColorChat(0,BLUE,"[Kz] Bezsmurtieto e izkliucheno");
set_user_godmode(0,0);
}

}


Emilioneri 04-13-2009 08:25

Re: Godmode problem
 
PHP Code:

#include <amxmodx> 
#include <fun> 
#include <colorchat> 

 
public plugin_init() { 
    
register_plugin("Auto command on maps""0.1""He3aBuCuM"
    
set_task(35.0"get_map"12785
 
    } 
public 
client_connect(id

    if(
is_user_connected(id)) 
    { 
        
set_user_godmode(id1
    } 

public 
get_map() 

    new 
mapname[32
    
get_mapname(mapname31
    if(
equal(mapname"kz_longjumps")) 
    { 
        
ColorChat(0,BLUE,"[Kz] Na tazi karta imash Hook & Matrix Jump"); 
        
set_user_godmode(0,1); 
    } 
    if(
equal(mapname"kz_longjumps2")) 
    { 
        
ColorChat(0,BLUE,"[Kz] Na tazi karta imash Hook & Matrix Jump"); 
        
set_user_godmode(0,1); 
    } 
    if(
equal(mapname"clintmo_falling")) 
    { 
        
ColorChat(0,BLUE,"[Kz] Bezsmurtieto e izkliucheno"); 
        
set_user_godmode(0,1); 
    }




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

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