Raised This Month: $12 Target: $400
 3% 

Fêw Quêstîôns


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
TheDS1337
Veteran Member
Join Date: Jun 2012
Old 12-19-2012 , 11:37   Fêw Quêstîôns
Reply With Quote #1

Hi All, I Need Help, Please Help Me In This !

In pawn we write this
Code:
public plugin_init( ) 
          RegisterHam( Ham_TakeDamge, "player", "fw_ham_take_damage" ) 

public fw_ham_take_damage( victim, inflictor, attacker, Float:damage, damage_type )
         // Code Here ....
How can i write this in c++ ?
TheDS1337 is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 12-19-2012 , 11:40   Re: Fêw Quêstîôns
Reply With Quote #2

Check WeaponMod module.
__________________
Arkshine is offline
TheDS1337
Veteran Member
Join Date: Jun 2012
Old 12-19-2012 , 11:52   Re: Fêw Quêstîôns
Reply With Quote #3

This ?
TheDS1337 is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 12-19-2012 , 12:01   Re: Fêw Quêstîôns
Reply With Quote #4

https://forums.alliedmods.net/showthread.php?t=183369
__________________
Arkshine is offline
TheDS1337
Veteran Member
Join Date: Jun 2012
Old 12-19-2012 , 12:05   Re: Fêw Quêstîôns
Reply With Quote #5

And how can i find plugin_init( ) or plugin_precache( ) ect.. in amxmodx module ?
TheDS1337 is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 12-19-2012 , 12:13   Re: Fêw Quêstîôns
Reply With Quote #6

Look at Amxx source code.

If you are not willing to search the existing module and understanding how work things, just give up.
__________________
Arkshine is offline
TheDS1337
Veteran Member
Join Date: Jun 2012
Old 12-19-2012 , 12:17   Re: Fêw Quêstîôns
Reply With Quote #7

i can't download weapon mod source codes the page blocked for me
and i can't find plugin_inti in amxx source codes
TheDS1337 is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 12-19-2012 , 12:22   Re: Fêw Quêstîôns
Reply With Quote #8

Link is working fine. Look, you don't know what you're doing, and it's obvious it's too early for you to check C/C++ code ; so for the third time, learn C/C++ basics before all, then you will see it will more easy to dig in C/C++ code source. And looking how you don't even try to search, you should also learn to search.
__________________
Arkshine is offline
TheDS1337
Veteran Member
Join Date: Jun 2012
Old 12-19-2012 , 12:27   Re: Fêw Quêstîôns
Reply With Quote #9

Okey, Sir !

Edit:
Tomorrow is the last day, i will have a 15 holidays
and i will learn it

Last edited by TheDS1337; 12-19-2012 at 12:31.
TheDS1337 is offline
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 09:39.


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