22.03.2019, 17:32
(
Последний раз редактировалось antixgaming; 22.03.2019 в 22:02.
)
'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...