SA-MP Forums Archive
So i heard you want to punch cheaters in the face.. - 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: Tutorials (https://sampforum.blast.hk/forumdisplay.php?fid=70)
+---- Thread: So i heard you want to punch cheaters in the face.. (/showthread.php?tid=299058)

Pages: 1 2


So i heard you want to punch cheaters in the face.. - JernejL - 23.11.2011

Here you go, this is a 0.3d only feature!:

VIDEO:
[ame]http://www.youtube.com/watch?v=-u5xVDXe6h8[/ame]

pawn Code:
forward facepunch(PlayerID, Text:tdraw, animframe);
public facepunch(PlayerID, Text:tdraw, animframe) {
   
    if (animframe == 31) {
       
        if (tdraw != Text:INVALID_TEXT_DRAW)
            TextDrawDestroy(tdraw);
       
        return;
    }
   
    if (animframe == 30) {
        SetTimerEx("facepunch", 5000, 0, "iii", PlayerID, _:tdraw, animframe + 1);
        return;
    }
   
    if (tdraw != Text:INVALID_TEXT_DRAW)
        TextDrawDestroy(tdraw);
   
    new Text:td = TextDrawCreate(320.0 - ((animframe * 20.0) * 0.5), 240.0 - ((animframe * 20.0) * 0.5), "hud:fist");
    TextDrawFont(td, 4);
    TextDrawTextSize(td, animframe * 20.0, animframe * 20.0);
    TextDrawShowForPlayer(PlayerID, td);
   
    SetTimerEx("facepunch", 20, 0, "iii", PlayerID, _:td, animframe + 1);
   
}


And then call.. this on the cheater you want to punch in the face:
SetTimerEx("facepunch", 20, 0, "iii", PlayerID, _:INVALID_TEXT_DRAW, 0);
Have a lot of fun with this.. cheaters deserve to be punched in the face.


Re: So i heard you want to punch cheaters in the face.. - Scott - 23.11.2011




Re: So i heard you want to punch cheaters in the face.. - Damian - 23.11.2011




Re: So i heard you want to punch cheaters in the face.. - grand.Theft.Otto - 23.11.2011

lmfao ! Covers up their screen, should keep them pissed off for some time


Re: So i heard you want to punch cheaters in the face.. - dr.pepper - 23.11.2011

Quote:
Originally Posted by Damian
View Post
Offtopic: Where'd you find my mom? lol'd at the pic hard.

Ontopic: Nice feature that you can use in 0.3d. So now we can piss of cheaters lol.


Re: So i heard you want to punch cheaters in the face.. - [HiC]TheKiller - 24.11.2011

Omg, I have always wanted to script something like this, it has been my dream!!!


Re: So i heard you want to punch cheaters in the face.. - serman - 24.11.2011

Nice Love it


Re: So i heard you want to punch cheaters in the face.. - Saurik - 24.11.2011

must add sound !


Re: So i heard you want to punch cheaters in the face.. - Lorenc_ - 24.11.2011



Well..... HELL FUCKING YEAH IM USING THIS!


Re: So i heard you want to punch cheaters in the face.. - Fool - 24.11.2011

I really thought this would punch them, turns out it's true.


Re: So i heard you want to punch cheaters in the face.. - [MG]Dimi - 24.11.2011

Awesome. Good job


Re: So i heard you want to punch cheaters in the face.. - Amit_B - 24.11.2011

I like your scripting style. No global variables at all.


Re: So i heard you want to punch cheaters in the face.. - leong124 - 24.11.2011

This is very funny.
However, it can be replaced by spamming textdraw ADs to them, to piss them off without the need of 0.3d.


Re: So i heard you want to punch cheaters in the face.. - Michael@Belgium - 24.11.2011

Haha I'll use this


Re: So i heard you want to punch cheaters in the face.. - Hiddos - 24.11.2011

Would there also be a scary sprite available? Combine it with the audio streaming feature I'd make the maze game


AW: So i heard you want to punch cheaters in the face.. - Meta - 24.11.2011

simple and clever


Re: So i heard you want to punch cheaters in the face.. - Karlip - 24.11.2011

Lots of mothers are gonna send complaints to team@sa-mp.com regarding kids having faces punched in.


Re: So i heard you want to punch cheaters in the face.. - Steven82 - 24.11.2011

Quote:
Originally Posted by Karlip
View Post
Lots of mothers are gonna send complaints to team@sa-mp.com regarding kids having faces punched in.
lol'd


Re: So i heard you want to punch cheaters in the face.. - MrObviousPotato - 24.11.2011

Quote:
Originally Posted by Hiddos
View Post
Would there also be a scary sprite available? Combine it with the audio streaming feature I'd make the maze game
There is a "scary" sprite of a man dropping the soap... If you think that's scary.


Re: So i heard you want to punch cheaters in the face.. - Mozz - 24.11.2011

Just a question, since this may be for only admins why wouldn't you just ban a cheater? makes more sense logistically.

Or a suggestion if I may - script this through a voting or report system for when no admins are online and if the vote/report passes then this happens to the cheater.

I like it though it's something new.