[FilterScript] Random Gift (Christmas / Easter / Halloween)
#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:
PHP Code:
//#define SANTA_IS_EASTER_EVENT     //Change to Easter Event
//#define SANTA_IS_EASTER_HALLOWEEN //Change to Halloween Event
#include <ADM/StreamerFunction>
#include <ADM/3DTryg>
#include <Santa>

public OnSantaPickupReward(playerid){

    
//edit this
    
GivePlayerMoney(playerid,250);
    
    return 
1;

Download:
Santa.inc[
StreamerFunction.inc Thread
3DTryg.inc Thread

Merry Christmas !

Notice:

Filterscript not exist because filterscripts have limits.

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


Non-Registered Users:
Bug Report
Reply
#2

not bad
goodjob
Reply
#3

thanks !
Reply
#4

Good Job
Reply
#5

Well, you could add different objects for hallloween, pumpkin and stuff..

Anyways, seems okay to me.

Keep it up
Reply
#6

Not really something unique but good work
Reply
#7

Nice man
Reply
#8

Keep it up
Reply
#9

Update v1.4:

- Added auto hook for OnPlayerPickUpDynamicPickup -> SantaPickUp

- Symbol SantaPickUpDynamicPickup has been removed

- Added callback:
PHP Code:
OnSantaPickupReward(playerid); 
- Added extra options:
PHP Code:
//#define SANTA_IS_EASTER_EVENT     //Change to Easter Event
//#define SANTA_IS_EASTER_HALLOWEEN //Change to Halloween Event 
Reply
#10

great job
Reply
#11

Update v1.4.1:
- Fix Init Hook
Reply
#12

Update v1.4.2:

- Added support for ColAndreas
Reply
#13

nice i wll test it
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)