SA-MP Forums Archive
[FilterScript] Simple Random Gifts System with objects (First FS) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] Simple Random Gifts System with objects (First FS) (/showthread.php?tid=626101)



Simple Random Gifts System with objects (First FS) - MarkNelson - 10.01.2017

Hello all samp forums users, i'm making my own filterscripts but i was bored today so i decided to share my XMAS Filterscript here.
It's very simple one but i hope you to like it.
Remember in this Filterscript i made 4 Random Gifts.
Santa Hat + Armor
RPG
Heavy Armor with 300 HP
Free 15 Score For Player.
Remember the CMD is : /randomgift

and when player try to get the gift again he will get an error message like this "You Already Have Got Your Gift"
intill he relogs.
Here is some pictures : (remember the FS has IG-objects)





Here is the Download Links :
.pwn file:
http://www.mediafire.com/file/7oetzg6ajmz1bdg/gifts.pwn
.amx file:
http://www.mediafire.com/file/yiplst87v8eg2g1/gifts.amx
INCLUDES NEEDED:
zcmd.inc
streamer.inc
-------------------------------------------------------
I hope you guys to like my filterscript and don't forget to give me your opinion and if you liked it feel free to give me REP, thank you.


Re: Simple Random Gifts System with objects (First FS) - PinoyMaps - 10.01.2017

This was veryUseful Script
+1 Rep bro keep it up ill wait for more of your work (Y)


Re: Simple Random Gifts System with objects (First FS) - MarkNelson - 10.01.2017

Thanks for your reply.


Re: Simple Random Gifts System with objects (First FS) - RyderX - 10.01.2017

nicely done


Re: Simple Random Gifts System with objects (First FS) - Bolex_ - 10.01.2017

Pastebin please!


Re: Simple Random Gifts System with objects (First FS) - MarkNelson - 10.01.2017

Just download the pwn file. NO VIRUS


Re: Simple Random Gifts System with objects (First FS) - Jelly23 - 10.01.2017

Why did you leave all those callbacks in the filterscript, if you are not using any of them?

PHP код:
public OnPlayerObjectMoved(playeridobjectid)
{
    return 
1;
}

public 
OnPlayerPickUpPickup(playeridpickupid)
{
    return 
1;
}

public 
OnVehicleMod(playeridvehicleidcomponentid)
{
    return 
1;
}

public 
OnVehiclePaintjob(playeridvehicleidpaintjobid)
{
    return 
1;
}

public 
OnVehicleRespray(playeridvehicleidcolor1color2)
{
    return 
1;
}

public 
OnPlayerSelectedMenuRow(playeridrow)
{
    return 
1;
}

public 
OnPlayerExitedMenu(playerid)
{
    return 
1;
}

public 
OnPlayerInteriorChange(playeridnewinterioridoldinteriorid)
{
    return 
1;
}

public 
OnPlayerKeyStateChange(playeridnewkeysoldkeys)
{
    return 
1;




Re: Simple Random Gifts System with objects (First FS) - MarkNelson - 10.01.2017

Most of people did like that. but, is there any problem with this?
i can remove them if you want.
anyway ty for your reply