Raised This Month: $ Target: $400
 0% 

Halo_Skins .5


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
FrontLine
Member
Join Date: Apr 2006
Old 04-15-2006 , 19:52  
Reply With Quote #5

Pretty dissapointing.
Code that stands now!
And i still need help getting rid of the warnings ...

/home/users/amxmodx/tmp3/phpp4BYSX.sma(34) : warning 217: loose indentation
/home/users/amxmodx/tmp3/phpp4BYSX.sma(41) : warning 217: loose indentation
/home/users/amxmodx/tmp3/phpp4BYSX.sma(89) : warning 217: loose indentation
/home/users/amxmodx/tmp3/phpp4BYSX.sma(91) : warning 217: loose indentation

Code:
#include <amxmodx> #include <amxmisc> #include <cstrike> #include <fakemeta> #include <engine> #include <fun> public plugin_init() {     register_plugin("Halo Skins", "0.5", "Front Line")     register_event("ResetHUD", "resetModel", "b")         register_event("CurWeapon", "Event_CurWeapon", "be", "1=1")         register_forward(FM_TraceLine,"fw_traceline",1)         register_event("CurWeapon", "make_tracer", "be", "1=1", "3>0")     return PLUGIN_CONTINUE } public plugin_precache() {     precache_model("models/player/halo_t/halo_t.mdl")     precache_model("models/player/halo_ct/halo_ct.mdl")       precache_model("models/p_MA5B.mdl")     precache_model("models/v_MA5B.mdl")         return PLUGIN_CONTINUE } public resetModel(id) {     new CsTeams:userTeam = cs_get_user_team(id)     if (userTeam == CS_TEAM_T) {         cs_set_user_model(id,"halo_t")                 give_item(id,"weapon_p90") // LINE 34                 set_user_health(id,150)                 set_user_armor(id,200)                 give_item(id,"ammo_p90")     }     else if(userTeam == CS_TEAM_CT) {         cs_set_user_model(id,"halo_ct")                 give_item(id,"weapon_p90") // LINE 41                 set_user_health(id,150)                 set_user_armor(id,200)                 give_item(id,"ammo_p90")     }     else {         cs_reset_user_model(id)     }     return PLUGIN_CONTINUE } public Event_CurWeapon(id) {     if(!is_user_alive(id) || !is_user_connected(id))         return PLUGIN_CONTINUE             new temp[2], weapon = get_user_weapon(id, temp[0], temp[1])     if(weapon == CSW_P90)     {             entity_set_string(id, EV_SZ_viewmodel, "models/v_MA5B.mdl")             entity_set_string(id, EV_SZ_weaponmodel, "models/p_MA5B.mdl")     }     return PLUGIN_CONTINUE } public fw_traceline(Float:v1[3],Float:v2[3],noMonsters,id) {     if(!is_user_connected(id) || !is_user_alive(id))     {         return FMRES_IGNORED;     }     new victim = get_tr(TR_pHit);     if(!is_user_connected(victim) || !is_user_alive(victim))     {         return FMRES_IGNORED;     }     new clip, ammo, weapon = get_user_weapon(id,clip,ammo);     if(weapon != CSW_P90 || clip <= 0)     {         return FMRES_IGNORED;     } new hitplace = get_tr(TR_iHitgroup); // LINE 89     if(hitplace == HIT_LEFTARM) // LINE 91     {         set_tr(TR_iHitgroup,random_num(HIT_STOMACH,HIT_CHEST)); // redirect it an arm     }     else if(hitplace == HIT_RIGHTARM)     {         set_tr(TR_iHitgroup,random_num(HIT_STOMACH,HIT_CHEST)); // redirect to a leg     }     else if(hitplace == HIT_RIGHTLEG)     {         set_tr(TR_iHitgroup,random_num(HIT_STOMACH,HIT_CHEST)); // redirect to a leg     }     else if(hitplace == HIT_LEFTLEG)     {         set_tr(TR_iHitgroup,random_num(HIT_STOMACH,HIT_CHEST)); // redirect to a leg     }         return FMRES_IGNORED;   }
__________________
FrontLine is offline
Send a message via MSN to FrontLine
 



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 05:08.


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