Raised This Month: $40 Target: $400
 10% 

[help] golden m4


Post New Thread Reply   
 
Thread Tools Display Modes
Ghosted
Veteran Member
Join Date: Apr 2015
Location: Georgia
Old 08-16-2018 , 06:59   Re: [help] golden m4
Reply With Quote #11

Quote:
Originally Posted by Celena Luna View Post
Who said it won't work?
I haven't seen code fully, g_HasM4 should work but your code wont cause weaponbox has not owner
__________________

[MOD] CS Weapon Mod V1.6.3 (Report )(1.7 - 44%)
[MM] MetaMod-C V0.99B (Report )(1.0 - 43%)
Base Builder Module Vote For It
( Donate) ( Steam)

Last edited by Ghosted; 08-16-2018 at 06:59.
Ghosted is offline
Celena Luna
Senior Member
Join Date: Aug 2013
Location: Okinawa, Japan
Old 08-16-2018 , 07:10   Re: [help] golden m4
Reply With Quote #12

Quote:
Originally Posted by Ghosted View Post
I haven't seen code fully, g_HasM4 should work but your code wont cause weaponbox has not owner
PHP Code:
/* Sublime AMXX Editor v2.2 */

#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <engine>
#include <fakemeta>
#include <hamsandwich>
#include <fun>
// #include <xs>
// #include <sqlx>

#define PLUGIN  "Test Code"
#define VERSION "1.0"
#define AUTHOR  "Celena Luna"

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)

    
register_forward(FM_SetModel"fw_SetModel")
}

public 
fw_SetModel(entitymodel[])
{
    if(!
pev_valid(entity))
        return 
FMRES_IGNORED

    
static Classname[32]
    
pev(entitypev_classnameClassnamesizeof(Classname))

    if(!
equal(Classname"weaponbox"))
        return 
FMRES_IGNORED

    
static idname[32]
    
id pev(entitypev_owner)
    
get_user_name(idnamecharsmax(name))
    
client_print(idprint_console"Models: %s"model)
    
client_print(idprint_console"Owner: %i"id)
    
client_print(idprint_console"Owner: %s"name)

    return 
FMRES_IGNORED;



Is this enough?
__________________
My plugin:
Celena Luna is offline
Ghosted
Veteran Member
Join Date: Apr 2015
Location: Georgia
Old 08-16-2018 , 07:22   Re: [help] golden m4
Reply With Quote #13

Omg, hows that, weaponbox with owner... nice ze map tho
__________________

[MOD] CS Weapon Mod V1.6.3 (Report )(1.7 - 44%)
[MM] MetaMod-C V0.99B (Report )(1.0 - 43%)
Base Builder Module Vote For It
( Donate) ( Steam)
Ghosted is offline
Celena Luna
Senior Member
Join Date: Aug 2013
Location: Okinawa, Japan
Old 08-16-2018 , 07:26   Re: [help] golden m4
Reply With Quote #14

Quote:
Originally Posted by Ghosted View Post
Omg, hows that, weaponbox with owner... nice ze map tho
I wrote CSO weapon to CS 1.6. Isn't that one of important thing when writing a weapon plugins?
plus this is known for long ago.
P/S: Skyline CSO map btw
__________________
My plugin:
Celena Luna is offline
Ghosted
Veteran Member
Join Date: Apr 2015
Location: Georgia
Old 08-16-2018 , 07:29   Re: [help] golden m4
Reply With Quote #15

Quote:
Originally Posted by Celena Luna View Post
I wrote CSO weapon to CS 1.6.
O yea, i wrote weapon mod

Quote:
Originally Posted by Celena Luna View Post
P/S: Skyline CSO map btw
Y, i was playing in Nexon
__________________

[MOD] CS Weapon Mod V1.6.3 (Report )(1.7 - 44%)
[MM] MetaMod-C V0.99B (Report )(1.0 - 43%)
Base Builder Module Vote For It
( Donate) ( Steam)
Ghosted is offline
Ghosted
Veteran Member
Join Date: Apr 2015
Location: Georgia
Old 08-16-2018 , 07:58   Re: [help] golden m4
Reply With Quote #16

Now i understand why it has owner.

Spoiler
__________________

[MOD] CS Weapon Mod V1.6.3 (Report )(1.7 - 44%)
[MM] MetaMod-C V0.99B (Report )(1.0 - 43%)
Base Builder Module Vote For It
( Donate) ( Steam)

Last edited by Ghosted; 08-16-2018 at 07:58.
Ghosted is offline
Shadowless
Senior Member
Join Date: May 2018
Location: Republic Of Georgia
Old 09-16-2018 , 05:40   Re: [help] golden m4
Reply With Quote #17

Wth...


P.s. რა ჩემი ყლე ხდება ვინმე ამიხსნის?
__________________
Shadowless is offline
Send a message via ICQ to Shadowless Send a message via MSN to Shadowless Send a message via Yahoo to Shadowless Send a message via Skype™ to Shadowless
Reply


Thread Tools
Display Modes

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


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