SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 14/01/2019, 12:16 AM   #11
SeeNN
Big Clucker
 
SeeNN's Avatar
 
Join Date: Sep 2017
Location: Craiova
Posts: 113
Reputation: 1
Default Re: Simple anti-car-spam

Nice,very nice,good job
SeeNN is offline   Reply With Quote
Old 14/01/2019, 12:40 AM   #12
RogueDrifter
High-roller
 
RogueDrifter's Avatar
 
Join Date: Dec 2017
Location: SA-MP Drifting world.
Posts: 1,184
Reputation: 384
Default Re: Simple anti-car-spam

pawn Code:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(newstate == PLAYER_STATE_DRIVER) //entered as driver
    {
        if((GetTickCount()-GetPVarInt(playerid, "cartime")) < 1000) // enters veh as driver faster than 1 once
        {
            SetPVarInt(playerid, "carspam", GetPVarInt(playerid, "carspam")+1);//Increase ticks
            if(GetPVarInt(playerid, "carspam") >= 5) // allows 5 seconds leeway to compensate for glitching, then kicks
            {
                //hacker action here
            }
        }
        SetPVarInt(playerid, "cartime", GetTickCount());//Last time entered car
    }
    return 1;
}
That's basically the code, i don't like using pvars and funfact is that opsc isn't even called for most of the new cheats a good try nevertheless seeing as this is a 2013 post and it doesn't matter if i comment or not since the guy above me bumped it. Not to mention players switch between vehicles as passengers but i'll agree on them being passengers not syncing the vehicle's position so that wouldn't matter much
__________________
Quote:
Originally Posted by Andy
I offer paid scripting services, I can do anything except mapping because fuck mapping.

[Github]:Link [Gists]:Link [Forum]:Link [Server]:Link [Discord]:Link


RogueDrifter is online now   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
[Tutorial] Simple and effective Anti-Spam BlackWolf120 Tutorials 8 10/12/2013 01:11 PM
[Tutorial] Simple anti-spam Dark Killer Tutorials 9 05/08/2013 06:50 PM
[FilterScript] Very simple car Signaling System v2 with Anti-Spam! useful for RP/GF servers! Edvin Filterscripts 2 20/09/2011 01:04 PM
[FilterScript] [FS] Simple Anti-Spam. ChristopherM Filterscripts 8 24/01/2011 04:49 AM
[Include] [INC] NoSpam - simple anti spam solution Donny_k Includes 4 13/01/2010 10:19 AM


All times are GMT. The time now is 03:18 AM.


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