Quote:
Originally Posted by daniel46
1
i have a jailbreak points shop and i want if the user wasnt in the server yet and dont have points so he will get x points as i choose
|
Here is a snippet of code from one of my plugins. Exactly what you're looking for. Hope this sends you on your way.
PHP Code:
if(!nvault_lookup(g_vaultHandle, sz_vaultKey, data, charsmax(data), timestamp))
{
frags = 0
nvault_set(g_vaultHandle, sz_vaultKey, "0")
if(get_pcvar_num(log_pcvar) == 1)
log_to_file(nVaultLogFile, "[BKF] User %s (%s) is a new client and has been added to the vault.", name, sz_vaultKey)
}
__________________