|
|
#1 |
|
Huge Clucker
![]() ![]() ![]() Join Date: Oct 2009
Location: Sweden
Posts: 240
Reputation: 19
|
I'm currently trying to make a timer for my command, but it doesn't seem to work, I've tried the two different ways I know of, settimer and settimerex, I either did something wrong or it doesn't work. Please help me out here thanks, it'd be appreciated.
|
|
|
|
|
#2 | |
|
Little Clucker
![]() Join Date: Apr 2011
Posts: 21
Reputation: 0
|
Quote:
is it like a countdown command? or a total race time or something like that?
|
|
|
|
|
|
#3 |
|
Big Clucker
![]() ![]() Join Date: May 2009
Location: Netherlands
Posts: 158
Reputation: 0
|
Could you show us the example?
And maybe an explanation on what exactly you want to comply there |
|
|
|
|
#4 |
|
Huge Clucker
![]() ![]() ![]() Join Date: Oct 2009
Location: Sweden
Posts: 240
Reputation: 19
|
Well I basically want a timer between each jump, that's pretty much it.
Code:
if(gTeam[playerid] == 2)
{
if(PRESSED(KEY_JUMP))
{
new Float:vx,Float:vy,Float:vz;
GetPlayerVelocity(playerid,vx,vy,vz);
SetPlayerVelocity(playerid,vx + 0.0,vy - 0.0 ,vz + 0.6);
}
}
return 1; ////////////////YOU KEEP FUCKING FORGETTING THIS
|
|
|
|
|
#5 |
|
Big Clucker
![]() ![]() Join Date: May 2009
Location: Netherlands
Posts: 158
Reputation: 0
|
|
|
|
|
|
#6 |
|
Huge Clucker
![]() ![]() ![]() Join Date: Oct 2009
Location: Sweden
Posts: 240
Reputation: 19
|
No, I want to create a timer between the jumps limiting them slightly as my team 2, which are vampires can jump significantly higher than normal humans but I need to put a limit per jump as they can literally fly in their current state when jumping. So I basically want to put a 3 seconds timer between each jump, limiting it.
|
|
|
|
|
#7 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Sep 2007
Location: Belgium
Posts: 4,894
Reputation: 1418
|
Use GetTickCount.
pawn Code:
|
|
|
|
|
#8 |
|
Huge Clucker
![]() ![]() ![]() Join Date: Oct 2009
Location: Sweden
Posts: 240
Reputation: 19
|
It works pretty much, except for the fact that whatever button I press I get spammed with that text basically.
|
|
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| /accent help! Please! Seriously appreciated :) | maramizo | Help Archive | 5 | 09/02/2011 09:09 AM |
| Help Appreciated | Max_Coldheart | Help Archive | 1 | 18/01/2011 01:51 PM |
| Help Needed, Help Appreciated | DRCharlie | Help Archive | 0 | 26/05/2010 04:54 PM |
| Spectate help appreciated | Marclang | Help Archive | 25 | 01/06/2009 05:43 PM |
| Help appreciated | Marclang | Help Archive | 2 | 23/05/2009 12:09 PM |