Raised This Month: $51 Target: $400
 12% 

Spawn AFK killer


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Leetbix
Member
Join Date: Dec 2009
Old 12-07-2009 , 22:39   Spawn AFK killer
Reply With Quote #1

Wanted to create a script for jailbreak, basically if they do not move for 30 seconds on terrorists they will die, for being in the cells. Is this possible?
Leetbix is offline
Moe
Member
Join Date: Dec 2009
Location: GTA
Old 12-15-2009 , 21:33   Re: Spawn AFK killer
Reply With Quote #2

Yes it is, but i believe the plugin is already out their. SEARCH.
Moe is offline
wind
Junior Member
Join Date: Oct 2009
Old 12-17-2009 , 19:45   Re: Spawn AFK killer
Reply With Quote #3

example:

<code>
public OnPluginStart()
{
CreateTimer(300.0, kickfreeplayer,_, TIMER_REPEAT);
}

public Action:kickfreeplayer(Handle:timer)
{
if(AliveSurvivors() < Survivors() || AliveSurvivors() < GetConVarInt(sm_l8d_slotok) || Survivors() < GetConVarInt(sm_l8d_slotok))
{

for(new i=1; i <= MaxClients; i++)
{
if(IsClientConnected(i) && IsClientInGame(i) && (GetClientTeam(i) == 1) && !IsFakeClient(i))
{
if (GetUserFlagBits(i)&ADMFLAG_ROOT > 0) continue;
PrintToChatAll ("\x04[tip:]\x03%N\x04kicked by\x03server!!",i);
KickClient(i, "please not afk!");
}
}

}

return Plugin_Handled;
}
[/code]
wind is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:44.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode