Raised This Month: $ Target: $400
 0% 

Register Touch...


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Depresie
Veteran Member
Join Date: Nov 2013
Old 08-29-2015 , 07:58   Re: Register Touch...
Reply With Quote #1

i did understand the first post, you seem to not understand my post...

don't be ignorant and lazy, you have your answer in that code...

anyway, this touch works fine for me when i create entities, if it doesn't for you, you have to create your entity properly... you have the example above

Code:
#define ENT_NAME "just-a-box"

new FILE[96]

new score[33]

new const WBMODEL[] = { "models/w_weaponbox.mdl" }

public plugin_init()
{
    register_plugin("WB", "1.0", "redivcram")
    
    register_touch(ENT_NAME, "player", "FwdPlayerTouchWeaponBox")
    
    register_clcmd("wpbox_spawn", "cmd_wpboxspawn")
    register_clcmd("wpbox_remove", "cmd_wpboxremove")
    register_clcmd("wpbox_score", "cmd_score")
}

Last edited by Depresie; 08-29-2015 at 08:03.
Depresie is offline
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 22:14.


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