18.10.2011, 15:06
KFU - Kavinsky Useful Functions
Hey all,I would like to introduce you to a includes called KFU.
The KFU that includes or contains some useful functions for pawn sought by me, enough talking now I will explain includes features contained in.
Functions
Код:
/******************************************************************************* * Function: IsPlayerInWater(playerid) * Description: The IsPlayerInWater need to see if a player is swimming (so it does not work if you're in the water with a vehicle) *******************************************************************************/ /******************************************************************************* * Function: GetPlayerID(name[]) * Description: The GetPlayerID return the id of a player by name *******************************************************************************/ /******************************************************************************* * Function: GetPlayerFromIP(ip[]) * Description: The GetPlayerIDFromIP return the id of a player through its ip *******************************************************************************/ /******************************************************************************* * Function: ToUpperCase(string[]) * Description: The toUpperCase transforms the characters of a string from lowercase to uppercase *******************************************************************************/ /******************************************************************************* * Function: ToTiny(string[]) * Description: The ToTiny has the inverse function of toUpperCase, transforms the characters of a string from upper to lower case *******************************************************************************/ /******************************************************************************* * Function: IsPrimeNumber(number) * Description: The IsPrimeNumber see if a number is prime or not *******************************************************************************/ /******************************************************************************* * Function: RandomBetweenNumbers(...) * Description: The RandomBetweenNumbers creates a random number between the brackets *******************************************************************************/ /******************************************************************************* * Function: RandomBetweenCharacters(...) * Description: The RandomBetweenCharacters creates a random one of the characters within the brackets *******************************************************************************/
~ Kavinsky (author include)
~ Angelo95
Pastebin.com