[Include] Little Unneeded Functions
#1

'Little Unneeded Functions'

version 1.1 - by qRighT


This is remaded version from my fallen project that has been more tested and experimented.
If you think that why I haven't just used macros and redefinitions, it is because it's function reliability.
Some of mathematical stuff has been tested with other people who agree that functions are reliable and safe.
Any of founded mistakes and complaints should be written via private message to me.


Functions:

IsCoordNearCoord(Float: x1, Float:y1, Float:z1, Float: x2, Float:y2, Float:z2, Float:radius);
SetPlayerMainStats(playerid, Float:health, Float:armour, money);
GetPlayerMainStats(playerid, &Float:health, &Float:armour, &money);
Kill(playerid);
KillAllPlayers();
KickPlayer(playerid);
BanPlayer(playerid);
KickPlayerEx(playerid, color, const reason[]);
BanPlayerEx(playerid, color, const reason[]);
GiveMoneyToAll(money);
IsPlayerNearPlayer(playerid, targetid, Float:radius);
SetHealthToAll(Float:health);


Explanations:

IsCoordNearCoord - checks if coordinate if close enough to another coordinate with specific radius
SetPlayerMainStats - sets health, armour, and money at once.
Kill - kills player
KillAllPlayers - kills all players
KickPlayer - kicks a player (with fixed using; able to send message and kick at once for example)
BanPlayer - bans a player (with fixed using)
KickPlayerEx - kicks player where you can send message with specific color (with fixed using)
BanPlayerEx - bans player where you can send message with specific color (with fixed using)
GiveMoneyToAll - gives money to all players who are connected
IsPlayerNearPlayer - if player is near other connected player in specific given radius
SetHealthToAll - gives specific health to all connected players


Download:

Click Here

END

If you have questions, feel free to reply! But complaints and reports should be sended via private messages!
More things will come later...
Reply


Messages In This Thread
Little Unneeded Functions - by antixgaming - 22.03.2019, 17:32
Re: Little Unneeded Functions - by antixgaming - 22.03.2019, 21:09
Re: Little Unneeded Functions - by antixgaming - 22.03.2019, 21:42
Re: Little Unneeded Functions - by antixgaming - 22.03.2019, 21:45
Re: Little Unneeded Functions - by antixgaming - 22.03.2019, 22:01
Re: Little Unneeded Functions - by antixgaming - 22.03.2019, 22:21
Re: Little Unneeded Functions - by antixgaming - 22.03.2019, 22:24
Re: Little Unneeded Functions - by Y_Less - 22.03.2019, 22:45
Re: Little Unneeded Functions - by iLearner - 22.03.2019, 23:04
Re: Little Unneeded Functions - by Kaliber - 22.03.2019, 23:24
Re: Little Unneeded Functions - by kristo - 22.03.2019, 23:29

Forum Jump:


Users browsing this thread: 1 Guest(s)