Quote:
Originally Posted by zwetch
Does anyone know what flag is needed to use the commands listed below ?
sm_admintitles - Gives a player a title
sm_admintitle - Gives a player a title
sm_givetitle - Gives a player a title
sm_removetitles - Removes player's all titles
sm_removetitle - Removes specific title from a player
|
Per default, ROOT (z)
Quote:
Originally Posted by Queqerror
hello guys !
i have a good question !
i saw many servers using bhop counter and strafe and sync on their timer is it possible to edit my plugin with these codes ? if yes can you help me?
|
I'm currently editing this plugin so it can be used in Bhop servers. Meanwhile, you can use
SSJ which prints in chat the info you want.
Quote:
Originally Posted by nukafight1
Is there a command I can put in console that give a player !VIP even if they're not on the server?
|
If you have access to the database, the table you need to edit is:
ck_playertitles and change vip's row to 1.
Or you can compile this:
(ckSurf.sp under OnPluginStart())
Code:
RegAdminCmd("sm_addvipoffline", Admin_addVipOffline, ADMFLAG_ROOT, "Add VIP Offline");
(in ckSurf/commands.sp)
Code:
public Action Admin_addVipOffline(int client, int args)
{
if (args != 1)
{
PrintToChat(client, "[%cCK%c] Usage: /addvipoffline (steamid)", MOSSGREEN, WHITE);
return Plugin_Handled;
}
char Arg[65];
GetCmdArg(1, firstArg, 65);
db_addVipOffline(client, firstArg);
return Plugin_Handled;
}
(in ckSurf/sql.sp)
Code:
public void db_addVipOffline(int client, char[] steamid)
{
//UPDATE ck_playertitles SET vip='1' WHERE steamid='STEAM_1:0:...';
if (!IsValidClient(client))
return;
char szQuery[512];
Format(szQuery, 512, "UPDATE ck_playertitles SET vip='1' WHERE steamid='STEAM_1:0:%s'", steamid);
SQL_TQuery(g_hDb, sql_addVipOfflineCallback, szQuery, client);
}
public void sql_addVipOfflineCallback(Handle owner, Handle hndl, const char[] error, any data)
{
if (hndl == null)
{
return;
}
if (!IsValidClient(data))
return;
PrintToChat(data, "[%cCK%c] Successfully updated VIP.", MOSSGREEN, WHITE);
}
Haven't
tested this but it should work. Remember to use the last digits of steamid's like: /addvipoffline 54688222 and not /addvipoffline STEAM_1:0:54688222 (something weird happens with GetCmdArgs)