gettickcount.
#9

You need to check if the RMB or LMB was pressed and an object was moved.
And you can instead use OnPlayerKeyStateChange instead of OnPlayerUpdate.

Refer to this link for checking key presses.
https://sampwiki.blast.hk/wiki/OnPlayerKeyStateChange

Your current code just keeps setting a variable and spams the user with a message if the player pauses for more than 5 seconds.Your code is more like an anti-pause system.
Reply


Messages In This Thread
gettickcount. - by newbienoob - 13.02.2014, 16:07
Re: gettickcount - by Konstantinos - 13.02.2014, 16:09
Re: gettickcount. - by newbienoob - 13.02.2014, 16:19
Re: gettickcount. - by Yashas - 13.02.2014, 16:23
Re: gettickcount. - by newbienoob - 13.02.2014, 16:33
Re: gettickcount. - by Yashas - 13.02.2014, 16:37
Re: gettickcount. - by newbienoob - 13.02.2014, 16:39
Re: gettickcount. - by Patrick - 13.02.2014, 16:44
Re: gettickcount. - by Yashas - 13.02.2014, 16:44
Re: gettickcount. - by newbienoob - 13.02.2014, 16:58

Forum Jump:


Users browsing this thread: 3 Guest(s)