SA-MP Forums Archive
[Include] MasterJoker's Useful Function v1.0 (Current 8 Available Items) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] MasterJoker's Useful Function v1.0 (Current 8 Available Items) (/showthread.php?tid=313312)



MasterJoker's Useful Function v1.1 (Current 16 Available Items) - MasterJoker - 25.01.2012

MasterJoker's Useful Function v1.1 (Current 16 Available Items)
Brought you by Mr.SmileWinky!

------------------------------------

First Version Release: January 25, 2012
Made by: MasterJoker
Current Function: 8 Items

Second Version Release: January 26, 2012
Made by: MasterJoker
Current Function: 16 items

This include will make your scripting easier 29% chance! try it now
v1.1 is now released! check the new functions!

Current available function

Код:
CreateTeleportPosition(playerid, Float:x, Float:y, Float:z, Float:ang);
CreateBotChatter(playerid, botname, text);
KickAll();
BanAll(reason);
IncreaseHealth(playerid, health); //uses getplayerhealth
DecreaseHealth(playerid, health); //uses getplayerhealth
IncreaseArmour(playerid, armour); //uses getplayerarmour
DecreaseArmour(playerid, armour); //uses getplayerarmour

v1.1

CreateHiddenTrapPos(playerid, Float:range, Float:x, Float:y, Float:z);
IncreaseScore(playerid, score); //uses GetPlayerScore
DecreaseScore(playerid, score); //uses GetPlayerScore
MJUFCredits(playerid, COLOR); //Doesn't require!
CreateDYOFC(playerid, text[]);
AddBanClan(playerid, clan[]);
MJUFGeneratorOFF();
MJUFGeneratorOn();
I forgot it has MJUFTest.pwn which all function are inside in 4 commands + 1 public (OnPlayerConnect)

Note: theres no more v1.2. if i keep updating the version i will run out of ideas + i saw bug.

Bugs:

On V1.1 of the include i saw bug and it close your samp-server.exe i don't know. its not my problem anymore because i stop developing this include. post in Scripting Discussion and i will reply (somehow)

For Guest Users:

Click here to download MJUF Include v1.0 - Pastebin
Click here to download MJUF Include v1.1 - Pastebin

For Registered Users:


Re: MasterJoker's Useful Function v1.0 (Current 8 Available Items) - Niko_boy - 25.01.2012

nice !ty
Making some stuff of scripting smaller
I Love such scripts


Re: MasterJoker's Useful Function v1.0 (Current 8 Available Items) - Kaperstone - 26.01.2012

looks nice
would be better if you'll add more function's


Re: MasterJoker's Useful Function v1.0 (Current 8 Available Items) - KingHual - 26.01.2012

Код:
IncreaseHealth(playerid, health); //uses getplayerhealth
DecreaseHealth(playerid, health); //uses getplayerhealth
IncreaseArmour(playerid, armour); //uses getplayerarmour
DecreaseArmour(playerid, armour); //uses getplayerarmour
Do they increase/decrease by 1 point or what?


Re: MasterJoker's Useful Function v1.0 (Current 8 Available Items) - MasterJoker - 26.01.2012

Quote:
Originally Posted by king_hual
Посмотреть сообщение
Код:
IncreaseHealth(playerid, health); //uses getplayerhealth
DecreaseHealth(playerid, health); //uses getplayerhealth
IncreaseArmour(playerid, armour); //uses getplayerarmour
DecreaseArmour(playerid, armour); //uses getplayerarmour
Do they increase/decrease by 1 point or what?
Example your health is 2.0 if you do IncreaseHealth(playerid, 3.2); the Include will add the 3.2 health to your 2.0 and it will became 5.2 health. and on decreaseone example your health is 100.0 when you add the code decrease and you put the value 5.0 it would be 50.0. now got it?


Re: MasterJoker's Useful Function v1.0 (Current 8 Available Items) - KingHual - 26.01.2012

Quote:
Originally Posted by MasterJoker
Посмотреть сообщение
Example your health is 2.0 if you do IncreaseHealth(playerid, 3.2); the Include will add the 3.2 health to your 2.0 and it will became 5.2 health. and on decreaseone example your health is 100.0 when you add the code decrease and you put the value 5.0 it would be 50.0. now got it?
Oh LOL didn't even notice the second parameter. I know how it works. Well these functions make your work easier, but I can't say I'm impressed.


Re: MasterJoker's Useful Function v1.0 (Current 8 Available Items) - MasterJoker - 26.01.2012

Quote:
Originally Posted by king_hual
Посмотреть сообщение
Oh LOL didn't even notice the second parameter. I know how it works. Well these functions make your work easier, but I can't say I'm impressed.
Thanks. Well yeah it make your work easier. more function will be upcoming!


Re: MasterJoker's Useful Function v1.0 (Current 8 Available Items) - MasterJoker - 26.01.2012

v1.1 has been released!


Re: MasterJoker's Useful Function v1.0 (Current 8 Available Items) - hossa - 26.01.2012

nice


Re: MasterJoker's Useful Function v1.0 (Current 8 Available Items) - MasterJoker - 27.01.2012

Thanks