AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Module Coding (https://forums.alliedmods.net/forumdisplay.php?f=9)
-   -   Fêw Quêstîôns (https://forums.alliedmods.net/showthread.php?t=203431)

TheDS1337 12-19-2012 11:37

Fêw Quêstîôns
 
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++ ?

Arkshine 12-19-2012 11:40

Re: Fêw Quêstîôns
 
Check WeaponMod module.

TheDS1337 12-19-2012 11:52

Re: Fêw Quêstîôns
 
This ?

Arkshine 12-19-2012 12:01

Re: Fêw Quêstîôns
 
https://forums.alliedmods.net/showthread.php?t=183369

TheDS1337 12-19-2012 12:05

Re: Fêw Quêstîôns
 
And how can i find plugin_init( ) or plugin_precache( ) ect.. in amxmodx module ?

Arkshine 12-19-2012 12:13

Re: Fêw Quêstîôns
 
Look at Amxx source code.

If you are not willing to search the existing module and understanding how work things, just give up.

TheDS1337 12-19-2012 12:17

Re: Fêw Quêstîôns
 
i can't download weapon mod source codes :( the page blocked for me
and i can't find plugin_inti in amxx source codes

Arkshine 12-19-2012 12:22

Re: Fêw Quêstîôns
 
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.

TheDS1337 12-19-2012 12:27

Re: Fêw Quêstîôns
 
Okey, Sir !

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


All times are GMT -4. The time now is 02:07.

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