Raised This Month: $ Target: $400
 0% 

Slowhack?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Smatify
Senior Member
Join Date: Nov 2012
Location: Where ever you want
Old 05-24-2013 , 09:58   Slowhack?
Reply With Quote #1

I'm trying to update Kia's Furien but I dont know if this is slowhack:

PHP Code:
public PlayerSpawn(id)  // Wenn Spieler spawnt
{
    if(!
g_bAccepted[id])
    new 
menu menu_create("To play on this server we need to change your settings.^n\rDo you agree?","settings_handler")
    
menu_additem(menu"\yYes","1",0);
    
menu_additem(menu"\rNo (Kick)","2",0);
    
menu_setprop(menuMPROP_EXITMEXIT_ALL)
    
menu_display(idmenu0);
    return 
PLUGIN_HANDLED
}

public 
settings_handler(idmenuitem)
{
    new 
data[6], szName[64];
    new 
accesscallback;
    
menu_item_getinfo(menuitemaccessdata,charsmax(data), szName,charsmax(szName), callback);
    new 
key str_to_num(data);
    switch(
key)
    {
        case 
1:
        {
            
g_bAccepted[id] = true
            
            
if(is_user_connected(id) && is_user_alive(id)) // Wenn Spieler lebt
            
{
                
fm_strip_user_weapons(id// Usern ALLE Waffen nehmen
        
                
fm_give_item(id"weapon_knife")
        
                if(
cs_get_user_team(id) == CS_TEAM_T// und T ist
                
{
                    
set_task(0.1,"TStuff",id)    
                }
                else if(
cs_get_user_team(id) == CS_TEAM_CT// und CT ist
                
{
                    
set_task(0.1,"CTStuff",id)
                }
            }
        }
        case 
2:
        {
                
KickPlayer(id"You refused to change your settings")
        }
    }
}

public 
TStuff(id)
{
    
set_user_gravity(idget_pcvar_float(cvar_t_grav)) // Gravity auf 375
    
set_user_footsteps(idget_pcvar_num(cvar_t_steps)) // Kein Schrittsounds
    
set_user_maxspeed(idget_pcvar_float(cvar_t_speed)) // Speed auf 700
    
    
give_item(id"weapon_hegrenade"// Nades geben
    
give_item(id"weapon_flashbang")
    
give_item(id"weapon_flashbang")
    
give_item(id"weapon_smokegrenade")
    
    
client_cmd(id"sv_maxspeed %i",get_pcvar_num(cvar_t_speed)) // Speedwerte setzen
    
client_cmd(id"cl_forwardspeed %i",get_pcvar_num(cvar_t_speed))
    
client_cmd(id"cl_sidespeed %i",get_pcvar_num(cvar_t_speed))
    
client_cmd(id"cl_backspeed %i",get_pcvar_num(cvar_t_speed))

__________________
Selling Hosting stuff such as Webspace and Game- & VoiceServer

I'm also selling Steam Keys.
For more informations, contact me.

(Homepage is under development)
Smatify is offline
 



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


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