Help please - 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)
+--- Thread: Help please (
/showthread.php?tid=613408)
Help please -
gipa069 - 27.07.2016
how to make a system to kick player if he does not login in 20 seconds , i use l.a.s lux admin system :/
Re: Help please -
Logic_ - 27.07.2016
20 seconds? Isn't it too less? Show us your OnPlayerConnect callback.
EDIT: I made an example for you, this will work too.
PHP код:
new cT[MAX_PLAYERS];
public OnPlayerConnect(playerid)
{
cT[playerid] = SetTimerEx("Connection", 60000, false, "i", playerid);
return 1;
}
forward Connection(playerid);
public Connection(playerid)
{
// Kick Player...
KillTimer(cT[playerid]);
return 1;
}
Re: Help please -
DarkSkull - 27.07.2016
Yeah, 20 seconds is too less. I would suggest atleast 60 seconds. And yea, Show us your OnPlayerConnect call back so that we can see what you're working with.
Re: Help please -
Logic_ - 27.07.2016
Quote:
Originally Posted by DarkSkull
Yeah, 20 seconds is too less. I would suggest atleast 60 seconds. And yea, Show us your OnPlayerConnect call back so that we can see what you're working with.
|
Post hunting? I don't see any thing new or any reason why you posted here except just for 'Post Hunting'... Maybe you should read rules...
Re: Help please -
DarkSkull - 27.07.2016
Quote:
Originally Posted by ALiScripter
Post hunting? I don't see any thing new or any reason why you posted here except just for 'Post Hunting'... Maybe you should read rules...
|
Nope dude. I'm really trying to fix others problems while someone fixes my own problem.
I was planning to create a times, SetTimerEx, and then kick the player. I hope you thought the same too
EDIT: You forgot to kick the player in your code :3
Re: Help please -
Logic_ - 27.07.2016
Quote:
Originally Posted by DarkSkull
Nope dude. I'm really trying to fix others problems while someone fixes my own problem.
I was planning to create a times, SetTimerEx, and then kick the player. I hope you thought the same too
EDIT: You forgot to kick the player in your code :3
|
Not forgotten, but I didn't add any code except killing the timer... for a purpose.
Re: Help please -
DarkSkull - 27.07.2016
Quote:
Originally Posted by ALiScripter
Not forgotten, but I didn't add any code except killing the timer... for a purpose.
|
Oh I thought you forgot it. Okay then
Re: Help please -
gipa069 - 05.11.2016
Thanks dude i forgot to check the thread lol