SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts

Reply
 
Thread Tools Display Modes
Old 30/11/2015, 03:17 PM   #1
AbyssMorgan
Banned
 
Join Date: Apr 2015
Location: Poland
Posts: 1,213
Reputation: 352
Cool 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

Last edited by AbyssMorgan; 01/11/2019 at 09:02 AM. Reason: Update 1.4.3
AbyssMorgan is offline   Reply With Quote
Old 02/12/2015, 01:49 PM   #2
Younes44
Gangsta
 
Younes44's Avatar
 
Join Date: Oct 2013
Posts: 765
Reputation: 78
Default Re: Random Gift (Christmas / Easter / Halloween)

not bad
goodjob
__________________
Left SA:MP, and not avalaible anymore!!
Thanks samp for awesome moments, i enjoy!! Goodbye!
ModernFreeroam: www.mf-samp.com , IP:94.23.255.30:7777
CounterTerroristUnit: www.ctu.w4f.eu , IP:87.98.243.201:6969
xSF: www.xsfserver.com , IP: 87.98.243.201:6969
Exm: www.exmserv.me , IP: exmserv.me:7777
Underground Stunting: www.ustunting.com , IP:145.239.3.225:7777

Thanks everyone,for the awesome moments,
Regards, COD Ghosts owner.
Younes44 ,YOuNeS_Dz ,WarZ ,Bryan_ , Kaneki
Younes44 is offline   Reply With Quote
Old 04/12/2015, 12:00 AM   #3
no1508
Little Clucker
 
Join Date: Mar 2015
Posts: 11
Reputation: 0
Default Re: Random Gift (Christmas / Easter / Halloween)

thanks !
no1508 is offline   Reply With Quote
Old 04/12/2015, 05:16 AM   #4
SilverStand
Big Clucker
 
SilverStand's Avatar
 
Join Date: Nov 2015
Location: GetPlayerPos
Posts: 105
Reputation: 4
Default Re: Random Gift (Christmas / Easter / Halloween)

Good Job
SilverStand is offline   Reply With Quote
Old 04/12/2015, 12:14 PM   #5
Ritzy2K
High-roller
 
Ritzy2K's Avatar
 
Join Date: Jun 2014
Location: India
Posts: 1,548
Reputation: 170
Default 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
Ritzy2K is offline   Reply With Quote
Old 04/12/2015, 02:17 PM   #6
JustMe.77
Huge Clucker
 
JustMe.77's Avatar
 
Join Date: Jun 2013
Location: Germany
Posts: 214
Reputation: 65
Default Re: Random Gift (Christmas / Easter / Halloween)

Not really something unique but good work
JustMe.77 is offline   Reply With Quote
Old 08/12/2015, 05:12 AM   #7
bramnapz
Banned
 
Join Date: Dec 2015
Location: Germany
Posts: 5
Reputation: 0
Default Re: Random Gift (Christmas / Easter / Halloween)

Nice man
bramnapz is offline   Reply With Quote
Old 08/12/2015, 05:16 AM   #8
Dutheil
Gangsta
 
Dutheil's Avatar
 
Join Date: Jul 2014
Location: France
Posts: 507
Reputation: 221
Default Re: Random Gift (Christmas / Easter / Halloween)

Keep it up
__________________
#PrayForFrenchForum
GitHub

pawn Code:
print({1466458484, 543452960, 2037347616, 1952999790, 1797286260, 544694643, 543649646, 1851859053, 1634428192, 1056964608});
Dutheil is offline   Reply With Quote
Old 19/06/2016, 10:07 PM   #9
AbyssMorgan
Banned
 
Join Date: Apr 2015
Location: Poland
Posts: 1,213
Reputation: 352
Default 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 
AbyssMorgan is offline   Reply With Quote
Old 20/06/2016, 02:52 PM   #10
Xdrime
Big Clucker
 
Xdrime's Avatar
 
Join Date: May 2016
Location: Mommy said I came from Heaven.
Posts: 69
Reputation: 6
Default Re: Random Gift (Christmas / Easter / Halloween)

great job
__________________
Quote:
Do you have any SA-MP scripting/mapping knowledge?: I usually use ****** map and have a 3 years diploma on reading maps and guidance. Therefore I am pretty skilful in this domain.
.
Xdrime is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Gift system with christmas tree fuem1907 Scripting Help 5 16/06/2013 02:43 AM
Random gift on vehicle Face9000 Scripting Help 9 12/01/2012 12:05 PM


All times are GMT. The time now is 12:34 AM.


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