SA-MP Forums Archive
VoteKick Help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: VoteKick Help (/showthread.php?tid=102730)



VoteKick Help - sant - 17.10.2009

ok, so I've been making a votekick command for my server and i don't know where to put

Код:
if(VoteKick[playerid] == MAX_VOTEKICK)
{
  SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have been voted to be kciked 5 times");
  Kick(playerid);
}



Re: VoteKick Help - calanda - 17.10.2009

Quote:
Originally Posted by sant
ok, so I've been making a votekick command for my server and i don't know where to put
Код:
You have been voted to be kciked 5 times"
first, learn how to spell kicked. second. there has to be more code than this. for the votekick. like if(strcmp blah blah. with the /votekick [id/name] thing.


Re: VoteKick Help - virspector - 17.10.2009

I think there should be a timer that if in 30 second, there already 5 votes, the player will be kicked.
Or, in OnPlayerCommandText under strcmp("/votekick" thing....