how can i mix this two lines :
Code:
public client_connect(id)
{
new szSteamid[33]
get_user_authid(id ,szSteamid, charsmax(szSteamid))
if(equal(szSteamid,"STEAM_ID_LAN") || equal(szSteamid, "VALVE_ID_LAN") || is_user_steam(id) )return PLUGIN_HANDLED;
iCount[id] = 0;
iItemType = 0;
iItem = 0;
new OrpheuHook:handlePrintf = OrpheuRegisterHook( OrpheuGetFunction( "Con_Printf" ), "Con_Printf" );
new szName[32]
get_user_name(id, szName,charsmax(szName))
server_cmd( "user ^"%s^"",szName );
server_exec();
OrpheuUnregisterHook( handlePrintf );
for ( new i = 0 ; i < iItem ; i++ ) iCount[id]++;
if(iCount[id] == 7){
new sIp[32];
get_user_ip(id, sIp, charsmax(sIp), 1);
server_cmd("kick #%d ^"you been kicked for using Exploit"", get_user_userid(id));
log_to_file("hldsBuffer.txt", "[ cheat-detector ][Name=%s][STEAMID=%s][IP=%s]",szName, szSteamid, sIp);
iCount[id] = 0;
}
return PLUGIN_CONTINUE;
}
and this
Code:
public client_connect(client) {
new szdata[ 35 ];
if(fvault_get_data(g_vaultname, user_ip(client), szdata, charsmax(szdata))) {
loadcmd(client);
if(!equal(user_authid(client), szdata)) {
kickuser(client);
return PLUGIN_HANDLED
}
}
else if(!fvault_get_data(g_vaultname, user_ip(client), szdata, charsmax(szdata))) {
savecmd(client);
loadcmd(client);
}
return PLUGIN_CONTINUE
}