Quote:
Originally Posted by Dragokas
+1, you need DB, KeyValues (depending on how many users) or direct editing the admins_simple.ini file (if you prever VIPs based on admin flags), like this one (code for removing only).
|
So hi again. I diceded to do this...
PHP Code:
char path[512];
FormatEx(path, sizeof(path), "addons/sourcemod/configs/admin_simple.ini");
if (!FileExists(path))
{
char steamid[32];
GetClientAuthId(client, AuthId_Steam2, steamid, sizeof(steamid));
OpenFile(path, "r+", false);
WriteFileLine("%s" "20:ao", ... , steamid);
WriteFileLine(
PrintToChat(client, "Congrats! VIP was given to %s!", clientname);
}
But i got some errors
Code:
error 035: argument type mismatch (argument 1)
warning 215: expression has no effect
error 029: invalid expression, assumed zero
error 029: invalid expression, assumed zero
fatal error 190: too many error messages on one line
How do i fix this?
Thanks for all your help and others as well!
__________________