Raised This Month: $ Target: $400
 0% 

[ZP] Extra item ghost


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
lashsh
BANNED
Join Date: Jun 2010
Location: Georgia, Tbilisi
Old 06-12-2010 , 05:40   Re: [ZP] Extra item ghost
Reply With Quote #1

PHP Code:
#include <amxmodx> 
#include <zombieplague> 
#include <cstrike>
#include <fun> 

new const Model[] = { "models/player/ghost/ghost.mdl" }
new 
g_item
new cvar_noclipcvar_speed

public plugin_init() 

    
register_plugin("[ZP] Extra Item: Mochveneba""0.1""LaSsHhH & Oneshox")  
    
g_item zp_register_extra_item("Mochveneba"1233ZP_TEAM_ANY

    
cvar_speed register_cvar("zp_item_speed""600"// here you can edit the max speed
    
cvar_noclip register_cvar("zp_item_noclip""1"// 1 - enable / 2 - disable



public 
plugin_precache()
{
    
precache_model(Model);
}

public 
zp_extra_item_selected(playeritemid

    if (
itemid == g_item
    
client_print(playerprint_chat"[ZP] Tqven iyidet mochveneba!")

    
set_user_maxspeed(playerget_user_maxspeed(player) + get_pcvar_num(cvar_speed))
    
set_user_noclip(playerget_pcvar_num(cvar_noclip))

    
cs_set_user_model(playerModel)

lashsh is offline
Send a message via Skype™ to lashsh
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 14:43.


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