open.mp forum
[Filterscript] PortalGun - Printable Version

+- open.mp forum (https://forum.open.mp)
+-- Forum: SA-MP (https://forum.open.mp/forumdisplay.php?fid=3)
+--- Forum: Releases (https://forum.open.mp/forumdisplay.php?fid=13)
+---- Forum: Filterscripts (https://forum.open.mp/forumdisplay.php?fid=30)
+---- Thread: [Filterscript] PortalGun (/showthread.php?tid=1915)



PortalGun - AbyssMorgan - 2021-04-18

Hello, I would like to present you the Portal Gun Script



Video:

https://www.youtube.com/watch?v=pHGUVNh9y3c

https://www.youtube.com/watch?v=wDBgtBY-cPs



Download:

PortalGun.inc

3DTryg.inc

ColAndreas Plugin



Installation:

Code:
#include <3DTryg> #include <PortalGun>



Functions:

Code:
TogglePrivatePortalGun(bool:toggle);? ? ? ? ? ? //default: false bool:IsTogglePrivatePortalGun(); ToggleUseTeamPortalGun(bool:toggle);? ? ? ? ? ? //default: false bool:IsToggleUseTeamPortalGun(); TogglePortalGunForAll(bool:toggle);? ? ? ? ? ? //default: true bool:IsTogglePortalGunForAll(); TogglePortalGunForPlayer(playerid,toggle);? ? ? //default: 0 IsTogglePortalGunForPlayer(playerid); Float:GetPortalGunSpeed(playerid); SetPortalGunSpeed(playerid,Float:speed); Float:GetPortalGunStreamDistance(); SetPortalGunStreamDistance(Float:streamdistance); ForceOpenPortalGunRing(playerid,portal_id,Float:ox,Float:oy,Float:oz,Float:tx,Float:ty,Float:tz,worldid,interiorid); ForceClosePortalGunRing(playerid);



Activation:

Code:
Weapon: Country Rifle Y - Change Ring



Notice:

Filterscript not exist because filterscripts have limits.

This has been replaced by include, having automatic installation, efficient GameMode/FilterScript.