I use these a lot and tought will help you too.
CheckRequiredFile is very useful stock for checking a plugin's translation, config and gamedata files. It sets a fail state automaticly and you don't have to build paths.
You can set, get, increase and decrease a player's data using
ClientData and you don't have to mess with "g_iAccount= FindSendPropOffs("CCSPlayer", "m_iAccount");" things anymore.
There are shortcuts for some properties too. For example if you want to give 100$ to a player, this will automaticly get the player's money , add it the value you specify and set it:
Code:
ClientMoney(client, "inc", 100);
Or you can use the old method too:
Code:
new g_iAccount;
OnPluginStart()
{
g_iAccount= FindSendPropOffs("CCSPlayer", "m_iAccount");
if(g_iAccount==-1)
{
SetFailState("OMG! What just happened there?");
}
}
MyFunction()
{
new currentvalue= GetEntData(client, g_iAccount);
SetEntData(client, g_iAccount, currentvalue+100);
}
Second one is 320 characthers longer than the first one

If you have some useful stocks too, I can add them in this pack. (Yes, you will get the credit

)
__________________