Personal variables ! Quickly store variable and use it between many plugins !
Also comes with script caller ! Parse any actions between your plugins and etc !
Examples:
//Get/Set integer value for the player.
int Frags = pVar_GetValue(client, "FragCount");
PrintToChat(client, "Your frags %i", Frags);
pVar_SetValue(client, "FragCount", 1337);
//Executing this code again will print Your frags 1337.
//Get/Set string variable for the player.
char Temp[255];
pVar_GetString(client, "MagicPowder", Temp);
PrintToChat(client, "You have %s in magic powder !", Temp);
pVar_SetString(client, "MagicPowder", "something unusual");
//Result:
//1.You have in magic powder !
//2.(second execution of the code) You have something unusual in magic powder !
//Trigger script code and see what comes with script event.
//Plugin test1.smx
//RegConsoleCmd blah blah
//Executing the code
pVar_TriggerAction("MAGIC_HAPPENED","Around of the castle", "Castle is seems to be closed", "And it definetly dont sell some of the bad things......");
As only as this function was called, you can now see it from any plugin you want.
//Plugin test2.smx
public pVar_OnAction(const char[] g, const char[] g1, const char[]g2, const char[] gl3, const char[] g4)
{
PrintToChatAll("Oops ! Something incoming ! Script_def_name %s %s %s %s %s" g,g1,g2,gl3,g4);
//Result: Oops ! Something incoming ! Script_def_name MAGIC_HAPPENED Around of the castle Castle is seems to be closed And it definetly dont sell some of the bad things ......
}