open.mp forum
[Filterscript] Santa Gifts - 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] Santa Gifts (/showthread.php?tid=1918)



Santa Gifts - AbyssMorgan - 2021-04-18

Hello, I would like to present a simple script to automatically deploy gifts on the map.



Description:

- On the map there is a prescribed amount of gifts. (Default 100)

- They appear in random locations on the map, in addition to water.

- What definite time reset location. (Default 2 hours)

- After collecting gifts a player receives award. (To set)

- After collecting gift changing locations.

- Nobody, not even the admin does not know gift location.



The script can be used to:

- Christmas

- Easter

- Halloween



Installation:

Code:
//#define SANTA_IS_EASTER_EVENT? ? //Change to Easter Event //#define SANTA_IS_EASTER_HALLOWEEN //Change to Halloween Event #include <streamer> #include <ColAndreas> #include <3DTryg> #include <Santa> public OnGameModeInit(){ //Santa::SetSpawnRectangle(Float:minx,Float:miny,Float:maxx,Float:maxy,bool:reset=true); //Santa::SetSpawnPolygon(Float:points[],maxpoints=sizeof(points),bool:reset=true); return 1; } public OnSantaPickupReward(playerid){ //edit this GivePlayerMoney(playerid,250); return 1; }



Download:

Santa.inc

3DTryg.inc

ColAndreas Plugin



Notice:

Filterscript not exist because filterscripts have limits.

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