Raised This Month: $ Target: $400
 0% 

please fix this code to works


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
lqlqlq
Senior Member
Join Date: Jan 2008
Old 07-26-2011 , 17:08   please fix this code to works
Reply With Quote #1

Code:
#include <amxmodx> 
#include <fakemeta> 
#include <hamsandwich> 
#include <fun> 
 
new const ModelCT[] = "models/seekers.mdl" 
new const ModelT[] = "models/hidders.mdl" 
new bool:TWin[33] 
new bool:CtWin[33] 
 
public plugin_init() { 
    register_plugin("WinMSG","2.0","Farsi")  
    RegisterHam(Ham_Spawn, "player", "HAM_spawn", 1) 
    register_event("SendAudio", "ct_win", "a", "2&%!MRAD_ctwin")  
    register_event("SendAudio", "t_win", "a", "2&%!MRAD_terwin")  
    register_event("CurWeapon", "curweapon", "be", "1=1") 
     
} 
public plugin_precache() { 
    precache_model(ModelCT) 
    precache_model(ModelT) 
} 
public client_putinserver(id) { 
    TWin[id] = false 
    CtWin[id] = false 
} 
public HAM_spawn(id) { 
    TWin[id] = false 
    CtWin[id] = false 
}  
public t_win(id) { 
    strip_user_weapons(id) 
    give_item(id, "weapon_knife") 
    CtWin[id] = false 
    TWin[id] = true 
} 
public ct_win(id) { 
    strip_user_weapons(id) 
    give_item(id, "weapon_knife") 
    CtWin[id] = true 
    TWin[id] = false 
} 
public curweapon( id ) { 
    if(TWin[id] == true) 
        set_pev(id, pev_viewmodel2, ModelT) 
    if(CtWin[id] == true) 
        set_pev(id, pev_viewmodel2, ModelCT) 
}
lqlqlq 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 00:49.


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