Using SetPlayerDrunkLevel for ShakePlayerCamera!
#1

pawn Код:
dcmd_shake(playerid, params[])
{
    #pragma unused params
    SetTimerEx("shakeit", 100, 1, "i", playerid);
    return 1;
}

forward shakeit(playerid);
public shakeit(playerid)
{
    SetPlayerDrunkLevel(playerid, 2005);
    return 1;
}
It shakes your camera like when a train is about to de-rail. Unfortunately I can't show you with a video as when I record with FRAPS it stops working, probably due to the FPS dropping. Does it work for you? It doesn't look great, hopefully ShakePlayerCamera will be added one day.
Reply
#2

That's a nice trick you've got there! I guess it would work too with some kind of explosion nearby, but this one is more reliable.
Reply
#3

You are not the exception! https://sampforum.blast.hk/showthread.php?tid=323581
Reply
#4

It's not a suggestion?
Reply
#5

Not really, just works for 1 second and not anymore
Reply
#6

Works for me. Guess it's FPS based.
Reply
#7

Things like this work on my desktop PC but not on my laptop. I think it is FPS based.
Reply
#8

Maybe ist because:

Quote:

Levels over 2000 make the player drunk.

and
Quote:

Drunk level will automatically decrease over time (roughly 26 levels per second)

Reply
#9

I think the amount it decreases equals your FPS.
Reply
#10

Yeah, I think that's wrong.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)