SA-MP Forums

SA-MP Forums (https://forum.sa-mp.com/index.php)
-   Filterscripts (https://forum.sa-mp.com/forumdisplay.php?f=17)
-   -   [FilterScript] Random Gift (Christmas / Easter / Halloween) (https://forum.sa-mp.com/showthread.php?t=595265)

AbyssMorgan 30/11/2015 03:17 PM

Random Gift (Christmas / Easter / Halloween)
 
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 <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 Thread
ColAndreas Plugin

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

Younes44 02/12/2015 01:49 PM

Re: Random Gift (Christmas / Easter / Halloween)
 
not bad
goodjob :)

no1508 04/12/2015 12:00 AM

Re: Random Gift (Christmas / Easter / Halloween)
 
thanks !

SilverStand 04/12/2015 05:16 AM

Re: Random Gift (Christmas / Easter / Halloween)
 
Good Job

Ritzy2K 04/12/2015 12:14 PM

Re: Random Gift (Christmas / Easter / Halloween)
 
Well, you could add different objects for hallloween, pumpkin and stuff..
Anyways, seems okay to me.
Keep it up :)

JustMe.77 04/12/2015 02:17 PM

Re: Random Gift (Christmas / Easter / Halloween)
 
Not really something unique but good work :)

bramnapz 08/12/2015 05:12 AM

Re: Random Gift (Christmas / Easter / Halloween)
 
Nice man

Dutheil 08/12/2015 05:16 AM

Re: Random Gift (Christmas / Easter / Halloween)
 
Keep it up :mrgreen:

AbyssMorgan 19/06/2016 10:07 PM

Re: Random Gift (Christmas / Easter / Halloween)
 
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 


Xdrime 20/06/2016 02:52 PM

Re: Random Gift (Christmas / Easter / Halloween)
 
great job :o


All times are GMT. The time now is 12:19 PM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.