[Include] New SA-MP callbacks!
#81

This is exactly what I meant. Thanks.
Reply
#82

pawn Код:
native GetPlayerRun(playerid);

// Values:
#define PLAYER_RUN_NONE -1
#define PLAYER_RUN_WALK 0
#define PLAYER_RUN_CROUCH 1 // Speed player: 11~14.
#define PLAYER_RUN_TROT 2
#define PLAYER_RUN_SPRINT 3

// Callbacks.
forward OnPlayerStartRun(playerid, runtype);
forward OnPlayerFinishRun(playerid);
Anims ID are (with GetPlayerAnimationIndex) is 1231 - 1266, and more.


Out of it, well done puto de la bob : )
Reply
#83

pawn Код:
forward OnPlayerResume(playerid, time);
Can I ask what the time is in? Milli-seconds, seconds or minutes?
By the way, I suggested this.
EDIT: Just saw it was in milli-seconds.
Good work! These are really helpful and time save! You've been repped.
Reply
#84

Quote:
Originally Posted by BenJackster
Посмотреть сообщение
pawn Код:
forward OnPlayerResume(playerid, time);
Can I ask what the time is in? Milli-seconds, seconds or minutes?
By the way, I suggested this.
EDIT: Just saw it was in milli-seconds.
Good work! These are really helpful and time save! You've been repped.
miliseconds
Reply
#85

The 'OnPlayerReleaseKey' callback isn't working for me.
pawn Код:
public OnPlayerReleaseKey(playerid, keys, time) {
    SendClientMessage(playerid, -1, "Key released.");
    printf("Released key %d in %d seconds.", keys, time / 1000);
    return 1;
}
it prints nothing..
Reply
#86

I'm having a error please help !

pawn Код:
callbacks.inc(1) : error 010: invalid function or declaration
callbacks.inc Line 1:
pawn Код:
#if !defined POTENTIAL_CRASH_DAMAGE
Reply
#87

I've seen it just now. Great release, Emmet. As usual, you are not disappointing.
Reply
#88

hey guys, i have this errors,help me,please



Quote:

E:\Documents and Settings\777\Рабочий стол\aim\pawno\include\callbacks.inc(346) : warning 235: public function lacks forward declaration (symbol "OnPlayerWeaponShot")
E:\Documents and Settings\777\Рабочий стол\aim\pawno\include\callbacks.inc(34 : error 017: undefined symbol "BULLET_HIT_TYPE_PLAYER"
E:\Documents and Settings\777\Рабочий стол\aim\pawno\include\callbacks.inc(485) : error 017: undefined symbol "NetStats_PacketLossPercent"
E:\Documents and Settings\777\Рабочий стол\aim\filterscripts\AimbotDetection.pwn(109) : error 025: function heading differs from prototype
E:\Documents and Settings\777\Рабочий стол\aim\filterscripts\AimbotDetection.pwn(151) : error 017: undefined symbol "GetPlayerLastShotVectors"
E:\Documents and Settings\777\Рабочий стол\aim\filterscripts\AimbotDetection.pwn(150) : warning 203: symbol is never used: "fOriginZ"
E:\Documents and Settings\777\Рабочий стол\aim\filterscripts\AimbotDetection.pwn(150) : warning 203: symbol is never used: "fOriginY"
E:\Documents and Settings\777\Рабочий стол\aim\filterscripts\AimbotDetection.pwn(150) : warning 203: symbol is never used: "fOriginX"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

Reply
#89

This is useful for me i will use this.
Reply
#90

gicu, you must include a_samp before the callbacks include.
Reply
#91

wew, you're really good. good work,
Reply
#92

GetPlayerFPS not works!
Reply
#93

Quote:
Originally Posted by Nils94
Посмотреть сообщение
GetPlayerFPS not works!
I'll take a look, it worked fine for me when I tested it.
Reply
#94

....
Reply
#95

Very nice functions. Good joob!!
Reply
#96

Quote:
Originally Posted by Crayder
Посмотреть сообщение
Emmet your afk system is not aiming proof, there are times that players do not update, like when they are aiming... I know you don't use onplayerupdate for the afk system to update but somehow i'm still affected by this...
Hmm, I thought I addressed that. Oh well. I have an idea that can fix the issue, thanks for reporting.
Reply
#97

Quote:
Originally Posted by Emmet_
Посмотреть сообщение
Hmm, I thought I addressed that. Oh well. I have an idea that can fix the issue, thanks for reporting.
Nice Work! looking forward for ur fix in that.. thanks!
Reply
#98

Fixed the pause problem. The time has been increased to avoid players being mistakenly marked as AFK (when shooting or aiming).
Reply
#99

Wow, how come after adding Emmet's include, i receive many, many indentation warnings? lol

pawn Код:
\pawno\include\callback.inc(183) : warning 217: loose indentation
\pawno\include\callback.inc(296) : warning 217: loose indentation
\pawno\include\callback.inc(297) : warning 217: loose indentation
\pawno\include\callback.inc(324) : warning 217: loose indentation
\pawno\include\callback.inc(364) : warning 217: loose indentation
\pawno\include\callback.inc(382) : warning 217: loose indentation
\pawno\include\callback.inc(389) : warning 217: loose indentation
\pawno\include\callback.inc(410) : warning 217: loose indentation
\pawno\include\callback.inc(411) : warning 217: loose indentation
\pawno\include\callback.inc(449) : warning 217: loose indentation
\pawno\include\callback.inc(456) : warning 217: loose indentation
\pawno\include\callback.inc(458) : warning 217: loose indentation
\pawno\include\callback.inc(463) : warning 217: loose indentation
\pawno\include\callback.inc(481) : warning 217: loose indentation
\pawno\include\callback.inc(492) : warning 217: loose indentation
\pawno\include\callback.inc(513) : warning 217: loose indentation
\pawno\include\callback.inc(518) : warning 217: loose indentation
\pawno\include\callback.inc(568) : warning 217: loose indentation
\pawno\include\callback.inc(605) : warning 217: loose indentation
\pawno\include\callback.inc(628) : warning 217: loose indentation
\pawno\include\callback.inc(631) : warning 217: loose indentation
\pawno\include\callback.inc(643) : warning 217: loose indentation
\pawno\include\callback.inc(657) : warning 217: loose indentation
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


23 Warnings.
Although without it, i dont receive any warnings at all
Reply

Awesome Waiting for some more.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)