SA-MP Forums Archive
[Include] New SA-MP callbacks! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] New SA-MP callbacks! (/showthread.php?tid=490436)

Pages: 1 2 3 4 5 6 7 8 9


Re : New SA-MP callbacks! - S4t3K - 02.06.2014

This is exactly what I meant. Thanks.


Respuesta: New SA-MP callbacks! - Swedky - 03.06.2014

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 : )


Re: New SA-MP callbacks! - Parallex - 06.06.2014

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.


Re: New SA-MP callbacks! - PT - 06.06.2014

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


Re: New SA-MP callbacks! - fordawinzz - 06.06.2014

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..


Re: New SA-MP callbacks! - maximthepain - 23.07.2014

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



Re: New SA-MP callbacks! - Twizted - 23.07.2014

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


Re: New SA-MP callbacks! - gicu - 15.08.2014

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




Re: New SA-MP callbacks! - Team_PRO - 15.08.2014

This is useful for me i will use this.


Re: New SA-MP callbacks! - kristo - 15.08.2014

gicu, you must include a_samp before the callbacks include.


Re: New SA-MP callbacks! - Rudy_ - 19.08.2014

wew, you're really good. good work,


AW: New SA-MP callbacks! - Nils94 - 24.08.2014

GetPlayerFPS not works!


Re: AW: New SA-MP callbacks! - Emmet_ - 25.08.2014

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


Re: AW: New SA-MP callbacks! - Ryan_Bowe - 25.08.2014

....


AW: New SA-MP callbacks! - Azure - 06.09.2014

Very nice functions. Good joob!!


Re: New SA-MP callbacks! - Emmet_ - 08.09.2014

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.


Re: New SA-MP callbacks! - Unknown1234 - 29.09.2014

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!


Re: New SA-MP callbacks! - Emmet_ - 30.09.2014

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


Re: New SA-MP callbacks! - GwENiko - 30.09.2014

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


Re: New SA-MP callbacks! - Rudy_ - 30.09.2014

Awesome Waiting for some more.