DEATHS ZOMG
DEATHS ZOMG
lol in half life i cannot change the player's deaths o.o are there anyway to change the player deaths? set_user_deaths doesnt works :crab::crab::crab: |
Re: DEATHS ZOMG
set_user_deaths() is deprecated...
|
Re: DEATHS ZOMG
For CS:
PHP Code:
PHP Code:
|
Re: DEATHS ZOMG
how to use it?
PHP Code:
@spunky wat is deprecated LOL im not good in english xD :crab::crab::crab: |
Re: DEATHS ZOMG
If you want to combine it into one function, use the below. If you just want deaths, you can figure it out (I hope).
PHP Code:
PHP Code:
|
Re: DEATHS ZOMG
Use the offset m_iDeaths ( 377 ) for HL.
Try this stock : Code:
|
Re: DEATHS ZOMG
woooT
thx for helping i will try 2 c if it works P.S : why is it stock instead of public o.o P.SS : YEs im a noob scripter if only i can + karma but still i give you some crabs :crab::crab::crab: |
Re: DEATHS ZOMG
From Pawn Language Guide (which I suggest you download)
Stock Functions A “stock” function is a function that the pawn parser must “plug into” the program when it is used, and that it may simply “remove” from the program (without warning) when it is not used. Stock functions allow a compiler or interpreter to optimize the memory footprint and the file size of a (compiled) pawn program: any stock function that is not referred to, is completely skipped —as if it were lacking from the source file. A typical use of stock functions, hence, is in the creation of a set of “library” functions. A collection of general purpose functions, all marked as “stock”may be put in a separate include file, which is then included in any pawn script. Only the library functions that are actually used get “linked” in. To declare a stock function, prefix the function name with the keyword stock. Public functions and native functions cannot be declared "stock". When a stock function calls other functions, it is usually a good practice to declare those other functions as “stock” too —with the exception of native functions. Similarly, any global variables that are used by a stock function should in most cases also be defined “stock”. The removal of unused (stock) functions can cause a chain reaction in which other functions and global variables are not longer accessed either. Those functions are then removed as well, thereby continuing the chain reaction until only the functions that are used, directly or indirectly, remain. Stock Variables A global variable may be declared as “stock”. A stock declaration is one that the parser may remove or ignore if the variable turns out not to be used in the program. |
Re: DEATHS ZOMG
oo
so it is removed when we compile or when we use it ? and where is the guide xD i want to download it |
Re: DEATHS ZOMG
A stock is only compiled into your plugin (.amxx) if the function\variable is used. For example, suppose you have 3 stocks in your plugin\include file: get_name(), get_id(), get_health() and in your plugin you only call get_id() out of those 3 (get_name() and get_health() are never used). get_id() is the only function that will be compiled into your amxx file. This will, as said above, improve the memory footprint and reduce the file size of your compiled .amxx file.
The guide: http://www.compuphase.com/pawn/Pawn_Language_Guide.pdf Other useful links: http://www.compuphase.com/pawn/pawn.htm#DOWNLOAD_DOCS |
| All times are GMT -4. The time now is 01:36. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.