[Include] Little Unneeded Functions

Started by SA:MP, May 10, 2023, 02:54 PM

Previous topic - Next topic

1 Member and 59 Guests are viewing this topic.

pupis

Мобильные приложения для ставок на спорт позволяют делать ставки в любое время. Установите приложение — скачать приложение БК бесплатно

GilbertVog

Идеи для стиля https://bbb.dp.ua красоты и развития карьеры. Экспертные советы для тех, кто стремится к гармонии в жизни.

GilbertVog

Идеи для стиля https://bbb.dp.ua красоты и развития карьеры. Экспертные советы для тех, кто стремится к гармонии в жизни.

GilbertVog

Идеи для стиля https://bbb.dp.ua красоты и развития карьеры. Экспертные советы для тех, кто стремится к гармонии в жизни.

купить сейф третьего клас

магазин сейфов предлагает сейф 3 класс в москве сейфы 3 класс взломостойкости

купить сейф третьего клас

магазин сейфов предлагает сейфы 3 класс взломостойкости сейф 3 класса цена

купить сейф третьего клас

магазин сейфов предлагает сейфы 3 класса купить сейф 3

SA:MP

[Include] Little Unneeded Functions

'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...

Source: [Include] Little Unneeded Functions