07.04.2008, 20:26
Hi scripters,
maybe you also recognized that the "Useful Functions/Callbacks" from Sacky doesn't work. So I took the initiative and edited the whole uf.inc file.
it took me a week to renew the functions and callbacks. i edited many functions and callbacks, which had small bugs, and i added many functions and callbacks of my own.
i also added a few callbacks by DracoBlue and Rafelder.
i asked Sacky for permission, but he didn't answered me so i hope he doesn't mind that i re-release the collection of useful functions and callbacks, which were once gathered by him.
It also includes the functions of dutils.inc by DracoBlue, because running both in 2 files didn't work.
Download it:
Installation:
I've started writing articles for each command, here you can look for the functions and callbacks: http://streetplaya.hopto.org/SAMP_Wi...Functions.html.
Till I've finished this you can search in the uf.inc-file for the command (commands begin with "stock ").
If anybody still find a bug please report it to me (PM or larcius.pc@web.de)
P.S.: Please post your new commands and callbacks here, so I can insert them into the uf.inc
_________________________________________________
Thanks to all people, who published their functions and callbacks:
maybe you also recognized that the "Useful Functions/Callbacks" from Sacky doesn't work. So I took the initiative and edited the whole uf.inc file.
it took me a week to renew the functions and callbacks. i edited many functions and callbacks, which had small bugs, and i added many functions and callbacks of my own.
i also added a few callbacks by DracoBlue and Rafelder.
i asked Sacky for permission, but he didn't answered me so i hope he doesn't mind that i re-release the collection of useful functions and callbacks, which were once gathered by him.
It also includes the functions of dutils.inc by DracoBlue, because running both in 2 files didn't work.
Download it:
Installation:
- download the ZIP-file and extract the uf.inc to \pawno\include\ (or wherever the a_samp.inc is)
- insert #include <uf> at the bottom of your a_samp.inc (really at the bottom, not just under the others #include ...)
- insert in your script #include <a_samp> (probably already done)
- insert into public OnGameModeInit() the command GameModeInit(), e.g.:
- public OnGameModeInit()
{
GameModeInit();
// and then your script...
- public OnGameModeInit()
Quote:
There some extension functions, like TogglePlayerControllable2(), which were quite the same as the original function, like TogglePlayerControllable(), with the difference that some other functions does NOT work if you don't use the extansion. Because I needed the callback OnVehicleSpawn(vehicleid) you have to use OnVehicleSpawn2(vehicleid,dynamic) (dynamic means, the vehicle was spawned to a new userdefined spawnpoint, so you can ignore it, if you didn't use the function SetVehicleSpawnPos(). On entering a vehicle the name of it will appear for 3 seconds at the right bottom of your screen. |
I've started writing articles for each command, here you can look for the functions and callbacks: http://streetplaya.hopto.org/SAMP_Wi...Functions.html.
Till I've finished this you can search in the uf.inc-file for the command (commands begin with "stock ").
If anybody still find a bug please report it to me (PM or larcius.pc@web.de)
P.S.: Please post your new commands and callbacks here, so I can insert them into the uf.inc
_________________________________________________
Thanks to all people, who published their functions and callbacks:
- Alex "******" Cole
- Jan "DracoBlue" Schьtze
- Gabriel "Larcius" Cordes
- Rafelder
- Mike
- Slick
- Allan
- SidViciousII
- Darkrealm
- El Presy
- Spectre
- mabako
- Sacky
- Boss
- Toxic
- dyraXon
- yellowblood
- 50p
- rapidZ
- Tratulla
- Kamazy
- Simon
- yom
- Betamaster
- Peter
- kool
- Hellomy