SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 04/08/2013, 08:25 PM   #1
CH | FuDo
Big Clucker
 
Join Date: Aug 2012
Posts: 72
Reputation: 0
Default kicking player

Hi guys, I have a problem with this:



I want to first show Conected to SAMP, then to send him this message, and then to kick him.
How to make it? Any suggestions?

Thanks!
CH | FuDo is offline   Reply With Quote
Old 04/08/2013, 08:31 PM   #2
doreto
High-roller
 
doreto's Avatar
 
Join Date: Aug 2010
Posts: 1,667
Reputation: 118
Default Re: kicking player

When connect create Timer for 3-4 seconds;when timer load send message and kick him
__________________
Quote:
Originally Posted by Kalcor View Post
This my site, so I get to decide what links are allowed. utube and 1e100 are no longer part of my web of trust.

The internet is more important to me than sa-mp. You don't get sa-mp without the internet.
Quote:
Originally Posted by [Twixx] View Post
That's kind of hypocritical of you to say. Sure you own the website, but it's not your personal blog or something - it's a community driven forum. The community should be the primary focus, not your personal agendas. Just like you don't get SA-MP without internet, you don't get SA-MP forums without community.

Just wiping out years worth of people's work and creations posted on that board because a bunch of people bypassed your Tube ban is absurd.
Quote:
Originally Posted by Mauzen View Post
"tube sucks cause they delete 6 years old videos for no reason!"

*deletes every single video ever posted here in 12 years*
doreto is offline   Reply With Quote
Old 04/08/2013, 08:32 PM   #3
Private200
High-roller
 
Private200's Avatar
 
Join Date: May 2012
Posts: 1,176
Reputation: 211
Default Re: kicking player

http://wiki.sa-mp.com/wiki/Kick

There have been a update frequently on the SA:MP 0.3x and the kicking time is faster then letting the player get message first. You'd better use a timer to get the player kicked. Watch the tutorial on the link that I gave and, good luck.

EDIT: For the comment up of me, are you just mad; 3-4 seconds for kicking; The player has hacked all the server in that small amount of time. 1sec is more then enough. Good would be 500MS.
Private200 is offline   Reply With Quote
Old 04/08/2013, 08:39 PM   #4
CH | FuDo
Big Clucker
 
Join Date: Aug 2012
Posts: 72
Reputation: 0
Default Re: kicking player

I maded timer, but what to use as a back to OnPlayerConnect public?
CH | FuDo is offline   Reply With Quote
Old 04/08/2013, 08:43 PM   #5
Private200
High-roller
 
Private200's Avatar
 
Join Date: May 2012
Posts: 1,176
Reputation: 211
Default Re: kicking player

Quote:
Originally Posted by CH | FuDo View Post
I maded timer, but what to use as a back to OnPlayerConnect public?
What do you mean; What to do OnPlayerConnect; If you mean that player is banned and want to kick him than you must create a saving system.
Private200 is offline   Reply With Quote
Old 04/08/2013, 09:08 PM   #6
CH | FuDo
Big Clucker
 
Join Date: Aug 2012
Posts: 72
Reputation: 0
Default Re: kicking player

I created reg/login system, now I want to create something like CheckRPName. You got it now?
CH | FuDo is offline   Reply With Quote
Old 04/08/2013, 09:41 PM   #7
Face9000
Banned
 
Join Date: Jan 2010
Location: Pigland
Posts: 3,351
Reputation: 190
Default Re: kicking player

Quote:
Originally Posted by Private200 View Post
What do you mean; What to do OnPlayerConnect; If you mean that player is banned and want to kick him than you must create a saving system.
He's just asking for a timer to make see the "kick message" at the player:

At the top:

pawn Code:
forward KickPlayer(playerid);
public KickPlayer(playerid)
{
    Kick(playerid);
    return 1;
}

Put where you placed the kick message:

pawn Code:
SetTimerEx("KickPlayer",200,false,"d",playerid);

Place it AFTER the kick message.
Face9000 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
kicking Essle Bug Reports 1 10/02/2013 11:53 AM
[Help] Kicking a player Maxips2 Scripting Help 3 28/10/2012 11:49 AM
kicking player during... P<3TS Scripting Help 13 03/08/2012 06:45 AM
Kicking an NPC RedFusion Scripting Help 2 18/07/2012 06:48 PM
Not kicking player from vehicle? Torran Help Archive 8 10/03/2010 03:32 PM


All times are GMT. The time now is 06:18 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.