Raised This Month: $ Target: $400
 0% 

FakeMeta, DispatchTouch() Help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Styles
Veteran Member
Join Date: Jul 2004
Location: California
Old 06-14-2007 , 15:00   FakeMeta, DispatchTouch() Help
Reply With Quote #1

Hey, I need help with two errors im getting: Now I Know nothing about fake meta. I used GunGames code to stop gun pickups.
Code:
[META] ERROR: Plugin didn't set meta_result: fakemeta_amxx_i386.so:DispatchTouch()

Code:
[META] ERROR: Plugin didn't set meta_result: fakemeta_amxx_i386.so:PlayerPreThink()

Code:
 // touchy touchy STOLEN FROM GUNGAME  public fw_touch(touched,toucher)  {     if(cs_get_user_team(toucher) == CS_TEAM_T)     {         //strip_user_weapons(toucher)         // invalid entities involved or gungame disabled         if(!pev_valid(touched) || !is_user_connected(toucher))             return FMRES_IGNORED             static classname[10]         pev(touched,pev_classname,classname,9)             // not touching a weapon-giver         // checks for weaponbox, weapon_*, armoury_*         if(classname[8] != 'x'         && !(classname[0] == 'w' && classname[1] == 'e' && classname[2] == 'a')         && !(classname[0] == 'a' && classname[1] == 'r' && classname[2] == 'm'))             return FMRES_IGNORED;             // removing starting pistols         if(get_gametime() - spawnTime[toucher] < 0.2)         {             dllfunc(DLLFunc_Think,touched)             return FMRES_SUPERCEDE         }             static model[24]         pev(touched,pev_model,model,23)             // not touching the kind of weaponbox that we like         // checks for models/w_weaponbox.mdl         if(model[17] == 'x') return FMRES_IGNORED             // allow pickup of C4         // checks for models/w_backpack.mdl         if(model[9] == 'b') return FMRES_IGNORED             // weapon is weapon_mp5navy, but model is w_mp5.mdl         // checks for models/w_mp5.mdl         if(model[10] == 'p' && model[11] == '5') model = "mp5navy"             // get the type of weapon based on model         else         {             replace(model,23,"models/w_","")             replace(model,23,".mdl","")         }         // everyone is allowed to use knife         // checks for knife         //if(model[0] == 'k') return FMRES_IGNORED;             // otherwise, this is an item we're not allowed to have         return FMRES_SUPERCEDE     }     return FMRES_IGNORED  }

Code:
// Thanks hawk for Shadow Cloak you rock! public Forward_PlayerPreThink(id) {     if(!is_user_alive(id))         return FMRES_IGNORED             set_hudmessage(0, 255, 0, -1.0, 0.79, 0, 6.0, 2.0, 0.0, 0.0, 1)     if( pev( id, pev_button ) & IN_USE && !( pev( id, pev_oldbuttons ) & IN_USE ) )         biteFunction(id)         if(cs_get_user_team(id) != CS_TEAM_T)         return FMRES_IGNORED                 new Float:Velocity[3]     pev(id,pev_velocity,Velocity)     new Float:Speed = Velocity[0] + Velocity[1] + Velocity[2],Modifier = Speed != 0.0 ? 1 : -1,Float:RenderAmount = float((g_LastRender[id] = clamp(g_LastRender[id] + Modifier,0,255)))     set_pev(id,pev_renderfx,kRenderFxGlowShell)     set_pev(id,pev_rendercolor,Float:{0.0,0.0,0.0})     set_pev(id,pev_rendermode,kRenderTransAlpha)     set_pev(id,pev_renderamt,RenderAmount)     if(RenderAmount <= 0)         show_hudmessage(id, "Stealth: Fully Invisable" )     else         show_hudmessage(id, "Stealth: %i / 255", floatround(RenderAmount) )         return FMRES_IGNORED }

Last edited by Styles; 06-14-2007 at 17:01.
Styles is offline
Send a message via AIM to Styles
 



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 10:43.


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