23.11.2011, 23:21
Here you go, this is a 0.3d only feature!:
VIDEO:
[ame]http://www.youtube.com/watch?v=-u5xVDXe6h8[/ame]
Have a lot of fun with this.. cheaters deserve to be punched in the face.
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);