08.04.2009, 22:29
File Description:
It's just some library I created untill I get a better idea to complete.
It contains functions that can be usefull for all.
Here are the functions list (these is actually the native comments to add the functions to the pawn listbox. These functions are not natives, just stocks)
I would also like to say "I'm sorry". I know someone has just released a library like this one. I'm not trying to create some competition...
My vision of this Include, is to turn it into something that can be useful for all the SAMP pawn scripters. That can only be done with your contribution to the library.
Stock List:
------- STRING USEFULL FUNCTIONS ---------
native string_token(str[], idx);
native string_delim_token(str[], delim, idx);
native string_replace_chars(str[], char, newchar);
native string_contains_char(str[], char);
native string_contains_string(str[], str2[]);
native string_pack_strings(str[][128], delim, totalstrings);
native string_length(str[]);
native string_insert(destination[], string[]);
------- USEFULL PLAYER FUNCTIONS ----------
native player_getName(playerid);
native player_transferMoney(playerid, targetid, ammount);
native player_kill(playerid);
native player_sendToClassSelection(playerid);
native player_resetStuff(playerid);
native player_explode(playerid);
native player_kick(playerid, reason[]);
native player_ban(playerid, reason[]);
native player_kick(playerid, reason[]);
native player_removeHealth(playerid, Float:health);
native player_giveHealth(playerid, Float:health);
native player_giveHealthBoost(playerid, Float
ercentage); // Percentage Ex: 0.25 = 25% health
------- USEFULL VEHICLE FUNCTIONS ---------
native vehicle_fix(vehicleid);
native vehicle_kill(vehicleid);
native vehicle_clear(vehicleid);
native vehicle_lock(vehicleid);
native vehicle_unlock(vehicleid);
native vehicle_bootPassengers(vehicleid);
------- USEFULL SERVER FUNCTIONS ----------
native SendDeathMessageToAll(playerid, killerid, reason);
native SendConnectMessageToAll(playerid);
native SendDisconnectMessageToAll(playerid);
native KickRegularPlayers();
native KickAll();
Download Link: Last Updated on 10.04.09 (15.07 GMT -1)

Previous Version Downloads: 21
Library Credits:
I created all functions by myself, without looking at anyone else's scripts.
Since the original release, some stocks have been modified with the help of the library contibutors, so they do deserve a big credit aswell.
Contibutors:
- Weirdosport
Update Log:
10.04.09 13:15 GMT-1:
- fixed: «vehicle_bootPassengers(vehicleid)»
- updated: «SendDeathMessageToAll(playerid, killerid, reason)»
- updated: «player_getName(playerid)»
10.04.09 15:07 GMT-1:
- added: «KickRegularPlayers()»
- removed: «string_reset()»
- updated: All array sizes to 128, to increase performance and server stability
- updated: «string_insert()» - It is now the same has strcat
Other Notes:
In order to turn this library into a great collection of functions, we need your contribution!
Feel free to modify or add a new stock function to the library.
Don't forget to post the changes you did to the library and get it posted in the official file! (You only need to post the stock function. Use the «pawn» tags)
It's just some library I created untill I get a better idea to complete.
It contains functions that can be usefull for all.
Here are the functions list (these is actually the native comments to add the functions to the pawn listbox. These functions are not natives, just stocks)
I would also like to say "I'm sorry". I know someone has just released a library like this one. I'm not trying to create some competition...
My vision of this Include, is to turn it into something that can be useful for all the SAMP pawn scripters. That can only be done with your contribution to the library.
Stock List:
------- STRING USEFULL FUNCTIONS ---------
native string_token(str[], idx);
native string_delim_token(str[], delim, idx);
native string_replace_chars(str[], char, newchar);
native string_contains_char(str[], char);
native string_contains_string(str[], str2[]);
native string_pack_strings(str[][128], delim, totalstrings);
native string_length(str[]);
native string_insert(destination[], string[]);
------- USEFULL PLAYER FUNCTIONS ----------
native player_getName(playerid);
native player_transferMoney(playerid, targetid, ammount);
native player_kill(playerid);
native player_sendToClassSelection(playerid);
native player_resetStuff(playerid);
native player_explode(playerid);
native player_kick(playerid, reason[]);
native player_ban(playerid, reason[]);
native player_kick(playerid, reason[]);
native player_removeHealth(playerid, Float:health);
native player_giveHealth(playerid, Float:health);
native player_giveHealthBoost(playerid, Float

------- USEFULL VEHICLE FUNCTIONS ---------
native vehicle_fix(vehicleid);
native vehicle_kill(vehicleid);
native vehicle_clear(vehicleid);
native vehicle_lock(vehicleid);
native vehicle_unlock(vehicleid);
native vehicle_bootPassengers(vehicleid);
------- USEFULL SERVER FUNCTIONS ----------
native SendDeathMessageToAll(playerid, killerid, reason);
native SendConnectMessageToAll(playerid);
native SendDisconnectMessageToAll(playerid);
native KickRegularPlayers();
native KickAll();
Download Link: Last Updated on 10.04.09 (15.07 GMT -1)

Previous Version Downloads: 21
Library Credits:
I created all functions by myself, without looking at anyone else's scripts.
Since the original release, some stocks have been modified with the help of the library contibutors, so they do deserve a big credit aswell.
Contibutors:
- Weirdosport
Update Log:
10.04.09 13:15 GMT-1:
- fixed: «vehicle_bootPassengers(vehicleid)»
- updated: «SendDeathMessageToAll(playerid, killerid, reason)»
- updated: «player_getName(playerid)»
10.04.09 15:07 GMT-1:
- added: «KickRegularPlayers()»
- removed: «string_reset()»
- updated: All array sizes to 128, to increase performance and server stability
- updated: «string_insert()» - It is now the same has strcat
Other Notes:
In order to turn this library into a great collection of functions, we need your contribution!
Feel free to modify or add a new stock function to the library.
Don't forget to post the changes you did to the library and get it posted in the official file! (You only need to post the stock function. Use the «pawn» tags)