• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Filterscript] Santa Gifts
#1
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.
  Reply


Forum Jump: