Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 6,590
» Latest member: folvep
» Forum threads: 2,448
» Forum posts: 12,469

Full Statistics

Online Users
There are currently 302 online users.
» 0 Member(s) | 300 Guest(s)
Bing, Google

Latest Threads
dhfhery
Forum: Pawn Scripting
Last Post: folvep
Yesterday, 12:48 PM
» Replies: 0
» Views: 25
rhrretru
Forum: Support
Last Post: folvep
Yesterday, 12:46 PM
» Replies: 0
» Views: 22
arfawrfatv
Forum: Questions and Suggestions
Last Post: folvep
Yesterday, 12:44 PM
» Replies: 0
» Views: 22
[BETA] Renaissance DM — O...
Forum: Advertisements
Last Post: DrVandersexxx
2026-05-04, 01:44 PM
» Replies: 0
» Views: 65
Ajuda com salvamento nao ...
Forum: Portuguese/Português
Last Post: Crazy_ArKzX
2026-05-02, 11:28 AM
» Replies: 1
» Views: 130
Object Remove?
Forum: Support
Last Post: Mivco
2026-04-29, 08:12 PM
» Replies: 0
» Views: 66
Floorp is a good webbrows...
Forum: Tech
Last Post: NoxxeR
2026-04-29, 01:01 AM
» Replies: 0
» Views: 87
Looking for Players for N...
Forum: Advertisements
Last Post: AlmightyJeremy
2026-04-27, 03:36 PM
» Replies: 0
» Views: 94
Algemene Discussies
Forum: Dutch/Nederlands
Last Post: Eamon
2026-04-27, 12:03 AM
» Replies: 41
» Views: 85,690
Help me find a current ar...
Forum: Tech
Last Post: KOZYR
2026-04-24, 03:53 PM
» Replies: 0
» Views: 95

 
  Shoot fireballs script
Posted by: dignity - 2019-04-14, 10:31 AM - Forum: Filterscripts - Replies (5)

Really old filterscript I released back when I was a weeb



PHP Code:
#include <a_samp>

#include <zcmd>



#define PRESSED(%0) (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))



stock IsPlayerAiming(playeridaimid)

{

? ? ? ?new 
Float:X1Float:Y1Float:Z1Float:X2Float:Y2Float:Z2;

? ? ? ?
GetPlayerPos(playeridX1Y1Z1);

? ? ? ?
GetPlayerPos(aimidX2Y2Z2);

? ? ? ?new 
Float:Distance floatsqroot(floatpower(floatabs(X1-X2), 2)  floatpower(floatabs(Y1-Y2), 2));

? ? ? ?if(
Distance 100)

? ? ? ?{

? ? ? ? ? ? ? ?new 
Float:A;

? ? ? ? ? ? ? ?
GetPlayerFacingAngle(playeridA);

? ? ? ? ? ? ? ?
X1 = (Distance floatsin(-Adegrees));

? ? ? ? ? ? ? ?
Y1 = (Distance floatcos(-Adegrees));

? ? ? ? ? ? ? ?
Distance floatsqroot(floatpower(floatabs(X1-X2), 2)  floatpower(floatabs(Y1-Y2), 2));

? ? ? ? ? ? ? ?if(
Distance 0.5)

? ? ? ? ? ? ? ?{

? ? ? ? ? ? ? ? ? ?return 
true;

? ? ? ? ? ? ? ?}

? ? ? ?}

? ? ? ?return 
false;

}



stock IsPlayerLookingAtPlayer(player1player2) { // Simon edited by Carlton

? ? ? ?if (!IsPlayerConnected(player1) || !IsPlayerConnected(player2)) return 0;

? ? ? ?if(
player1 == player2) return 0;

? ? ? ?new

? ? ? ? ? ? ? ?
Floatdistance,

? ? ? ? ? ? ? ?
FloatvectorX,

? ? ? ? ? ? ? ?
FloatvectorY,

? ? ? ? ? ? ? ?
FloatvectorZ,

? ? ? ? ? ? ? ?
FloatplyrPos[2][3],

? ? ? ? ? ? ? ?
FloatprojPos[3];

? ? ? ?
GetPlayerCameraFrontVector(player1vectorXvectorYvectorZ);

? ? ? ?
GetPlayerCameraPos(player1plyrPos[0][0], plyrPos[0][1], plyrPos[0][2]);

? ? ? ?
GetPlayerPos(player2plyrPos[1][0], plyrPos[1][1], plyrPos[1][2]);

? ? ? ?
#define SQUARE(%1) ?((%1)*(%1))

? ? ? ?distance floatsqroot(

? ? ? ?
SQUARE(plyrPos[1][0]-plyrPos[0][0])  SQUARE(plyrPos[1][1]-plyrPos[0][1])  SQUARE(plyrPos[1][2]-plyrPos[0][2]));

? ? ? ?
projPos[0] = plyrPos[0][0]  vectorX distance;

? ? ? ?
projPos[1] = plyrPos[0][1]  vectorY distance;

? ? ? ?
projPos[2] = plyrPos[0][2]  vectorZ distance;

? ? ? ?return ((
SQUARE(plyrPos[1][0]-projPos[0])  SQUARE(plyrPos[1][1]-projPos[1])  SQUARE(plyrPos[1][2]-projPos[2])) <= SQUARE(distance 6));

? ? ? ?
#undef SQUARE

}



CMD:fireballs(playeridparams[])

{

? ?if( !
GetPVarInt(playerid"FIREBALLS") ) SetPVarInt(playerid"FIREBALLS"1), SendClientMessage(playerid, -1"Fireballs turned on.");

? ?else 
SetPVarInt(playerid"FIREBALLS"0), SendClientMessage(playerid, -1"Fireballs turned off.");

? ?return 
1;



}



public 
OnObjectMoved(objectid)

{



? ?for( new 
0MAX_PLAYERSi)

? ?{

? ? ? ?if( 
objectid == GetPVarInt(i"FIREOBJID") )

? ? ? ?{



? ? ? ? ? ?
DestroyObjectGetPVarInt(i"FIREOBJID") );

? ? ? ? ? ?
DeletePVar(i"FIREOBJID");

? ? ? ? ? ?
CreateExplosionGetPVarFloat(i"FIREBALLX"), GetPVarFloat(i"FIREBALLY"), GetPVarFloat(i"FIREBALLZ"), 117.5);



? ? ? ?}

? ?}



}



public 
OnPlayerKeyStateChange(playeridnewkeysoldkeys)

{

? ?if (
GetPVarInt(playerid"FIREBALLS") && PRESSED(KEY_FIRE))

? ?{

? ? ? ?new 
Float:posXFloat:posYFloat:posZ;

? ? ? ?for(new 
0MAX_PLAYERSi)

? ? ? ?{

? ? ? ? ? ?
GetPlayerPos(i,posX,posY,posZ);

? ? ? ? ? ?if (
== playerid) continue;

? ? ? ? ? ?if(
IsPlayerLookingAtPlayer(playeridi) && IsPlayerAiming(playeridi) && !IsPlayerInAnyVehicle(playerid) && !IsPlayerInAnyVehicle(i))

? ? ? ? ? ?{

? ? ? ? ? ? ? ?if( 
GetPVarInt(playerid"FIREOBJID") != ) return SendClientMessage(playerid, -1"1 at a time!");



? ? ? ? ? ? ? ?new 
str[100];

? ? ? ? ? ? ? ?new 
nom[32];

? ? ? ? ? ? ? ?
GetPlayerName(inom32);

? ? ? ? ? ? ? ?
format(str100"You fireballed %s."nom);

? ? ? ? ? ? ? ?
SendClientMessage(playerid, -1str);

? ? ? ? ? ? ? ?new 
Float:pxFloat:pyFloat:pz;

? ? ? ? ? ? ? ?
GetPlayerPos(playeridpxpypz);

? ? ? ? ? ? ? ?
SetPVarInt(playerid"FIREOBJID"CreateObject(18688pxpypz-1.35000500.0));

? ? ? ? ? ? ? ?
GetPlayerPos(ipxpypz);

? ? ? ? ? ? ? ?
SetPVarFloat(playerid"FIREBALLX"px);

? ? ? ? ? ? ? ?
SetPVarFloat(playerid"FIREBALLY"py);

? ? ? ? ? ? ? ?
SetPVarFloat(playerid"FIREBALLZ"pz);

? ? ? ? ? ? ? ?
MoveObject(GetPVarInt(playerid"FIREOBJID"), pxpypz-1.515);

? ? ? ? ? ?}

? ? ? ?}

? ?}

? ?return 
1;





[Video: https://www.youtube.com/watch?v=BK7p5WafeRE&]


Information [SUGGESTION] Dark Mode
Posted by: Mugsy - 2019-04-14, 10:28 AM - Forum: Chat - Replies (13)

The title says it all, a button with the sign of a moon and that if you give it you put the dark mode and then a sun and if you give it normal mode. Sorry for the translator.


  5imik Map Showcase
Posted by: 5imik - 2019-04-14, 10:25 AM - Forum: Videos and Screenshots - Replies (9)

[Image: flag-round-250.png]

[Image: 124592-480.png] :?

5imik #4115

[Image: 0mfEtoD.png]

[Image: il3E6Yr.jpg]



[Image: vfinal.jpg]

[Image: sa-mp-183.png]

[Image: wZy6Bpn.png]

[Image: GITAN.jpg]

[Image: radio.png]



[Image: 1542375733-nazimap.png]

[Image: fashionweek.png]



[Image: bobbby.png]



[Image: vagos.png]

[Image: ezfor5imik.png]



[Image: ruggierobox.png]

[Image: sweet.png]

[Image: chinatow.png]

[Image: bobbyegout.png]

[Image: MAPPING.png]

[Image: barpirate.png]

[Image: Sans_titre-2.png]

[Image: theviceclub.png]

[Image: reqardian.png]

[Image: Sans_titre-2.png]

[Image: BOWLIONG.png]

[Image: opera.png]

[Image: RUELLEJAPON.png]

[Image: fbi.png]

[Image: Sans_titre-9.png]

[Image: badabing.png]


  Port Royal - Juego de Rol Pirata
Posted by: James - 2019-04-14, 10:22 AM - Forum: Discusión GTA SA Multijugador - Replies (28)

?Saludos camaradas!



Estoy entusiasmado con la idea que se lanza desde este proyecto y permitir m?s modificaciones (las cuales hacen falta para proyectos como el m?o).?

Ser? impresionante poder hacer las cosas que se tienen en mente para mejorar la ambientaci?n y jugabilidad de los jugadores dentro del servidor.



Quiz? algunos no me conozcan pero soy James, desarrollador de Port Royal Roleplay.?



[Image: logo.png]



?QU? ES PORT ROYAL ROLEPLAY?

Port Royal Roleplay es un proyecto que se decidi? crear en 2017. Conoc? el proyecto cuando estaba liderado por otro equipo de desarrollo, desgraciadamente, estos estaban en la versi?n 0.3.7 y no ten?an mucha pasi?n por el proyecto. Entr? al equipo como modder en su d?a,?el hoster y scripter se marcharon dej?ndonos tirados al mapper de aquel entonces que actualmente es desarrollador conmigo.



Tomamos el proyecto y lo transform? a la versi?n 0.3.DL-R1 con nuevos c?digos e importaci?n de skins y?objetos personalizados.



El servidor est? basado en la ?poca de la pirater?a, bajo el gobierno del Imperio Espa?ol en el a?o 1640. Principalmente se inici? en 1715 pero se decidi? cambiar debido a algunos cambios que quer?amos plantear. A continuaci?n os adjuntar? algunas im?genes del desarrollo:



[Image: 13C3wrE.jpg]



[Image: rgfU469.jpg]



[Image: qusRaq8.jpg]



[Image: BE6Fo0I.png]



[Image: YOCkYlx.jpg]



[Image: GbHwUFl.jpg]



[Image: OWQ932f.jpg]



[Image: GaYApLZ.png]



[Image: fqYbPQX.png]


  PC hardware: latest, upcoming, personal builds
Posted by: Wolf - 2019-04-14, 10:11 AM - Forum: Tech - Replies (30)

Thread for discussion about the latest and upcoming pc hardware, as well as your own build.





Personal?build: i5 6400, AMD Radeon RX560 4GB, 8 gigs of RAM, a TB of space (not enough), 1080p monitor and so on


Heart Send your cat pics
Posted by: Kiru - 2019-04-14, 10:05 AM - Forum: Chat - Replies (17)

[Image: zGACHsN.jpg]

Cute quality pic <3


  [HELP] Discord connector.
Posted by: Mugsy - 2019-04-14, 10:03 AM - Forum: Pawn Scripting - Replies (15)

I need help in this area, do not do anything about this and I need to do it urgently, I would like it if you could help me.



https://github.com/maddinat0r/samp-discord-connector


  Magyar
Posted by: TwisT3R - 2019-04-14, 09:52 AM - Forum: Hungarian/Magyar - Replies (33)

Na helloka!

Kinek mi a v?lem?nye errol a felhajt?sr?l?


  Leaked version 0.3? SA-MP Source Code
Posted by: hastlaking - 2019-04-14, 09:15 AM - Forum: General Discussions - Replies (10)

is it true that the project from the forum sa-mp got leaked i dont know what version but i truly am gona say i got a fresh copy of it.


  denNorske's SA-MP Query Cache Proxy
Posted by: denNorske - 2019-04-14, 09:08 AM - Forum: Releases - Replies (9)

SA-MP Query Cache Proxy
(Made in python3.7)

Hosted tab servers are facing a massive spam of spoofed UDP packets. The servers simply have no chance to respond to all the fake query requests, and becomes overworked. This ends up with servers not appearing online in the samp client, and if they appear, lots of information don't appear.?
UPDATE: Attack has calmed down (14th of april 2019)

This package will take all the "shit" from the fake packages and respond with a cached response from the samp server. The proxy sends a request to the samp server every few second to cache latest info, which it so sends further to the client that requests it. This shields the samp server and makes it appear normally in everyone's clients. It has been tested on my community and some other servers, and the effect is very noticeable.?

Why python??
Well, python was the only other language besides PAWN and C# that I knew in 2019, and it was the only contribution I could make together with my friend Nick. Now that I also know a bit of C, Javascript and such, but considering it works so well, it's fair enough to say that it may remain using python.

This project is written by frxstrem, nick and me, and everyone's welcome to contribute with better solutions by creating pull requests from separate branches. It has been tested under load of a UDP spam on approximately 3500 pps. It takes up one entire thread of a CPU on a I7-8700k.

Unfortunately, this method will only work on VPS's/VDS's where you have full access to the host system. Python code requires iptables rules to be applied.



How to run the python script in background;?
1:

Code:
python3 pack-scan.py &
2:Then use:
Code:
detach
to avoid it closing with the terminal, when you leave the SSH session, or close the terminal.



Disclaimer: I am in no way responsible for misconfigurations or changes done by you. You should understand what iptables do and what my code do before you use it.

Query Mechanism information: Click here

READ ME: https://github.com/dennorske/samp-packet.../README.md

Known issues:?
  • Under load, script tends to stop working after approximately a week. You can set up a simple bash script to restart it automatically (Fixed March 19th 2021)
  • game-state and SACNR monitor queries are not responded correctly, causing graphs to not show or show incorrectly.

Visual of the Query mechanism with the script running (Assuming iptables works correctly) :
[Image: 68747470733a2f2f706963732e6475636b792e72...322e706e67]


LINK TO REPOSITORY/Download https://github.com/dennorske/samp-packet-proxy


Disabling the cache/removing IPtable rules:
In order to remove the rules you've added from IPtables, please replace "-A" or "-I", with "-D" in the commands.
You need to make sure you write the exact same commands, else it will fail. (if you changed ports, use those ports, and replace -A with -D for example)