[Include] MasterJoker's Useful Function v1.0 (Current 8 Available Items)
#1

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:
Reply
#2

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

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

Код:
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?
Reply
#5

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?
Reply
#6

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.
Reply
#7

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!
Reply
#8

v1.1 has been released!
Reply
#9

nice
Reply
#10

Thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)