Quote:
Originally Posted by PeterPan
So user connects earns/spends credits then when they reconnect they're back at 0
|
Simple like that:
PHP Code:
#include <store>
public void OnClientDisconnect(int client)
{
Store_SetClientCredits(client, 0);
}
Quote:
Originally Posted by PeterPan
I then want a player to be able to do !awp or something which would then exec sm_give "#steamid" awp and take x amount of credits
|
This store have that option
https://forums.alliedmods.net/showthread.php?t=276677
If you need help with the configuration of that plugin just search in that topic. If you still need something else, let me know
EDIT: I clarify that the smx that was included is the small source that I put in the post. The include file is public available
HERE (the store link that I mentioned) and I used sourcemod 1.7 for compile (because that include have warnings on newest compilers).