SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 05/10/2016, 07:51 PM   #1
Eoussama
High-roller
 
Eoussama's Avatar
 
Join Date: Jul 2016
Location: Kingdom of Morocco // Tangier
Posts: 1,078
Reputation: 149
Post [EO] VIP system v1.7 MySQL R41-2 (Stable version)


EO_VIP system Version 1.8
(v1. Released in 13th july 2017
(Stable version)


Greetings
Hello there everybody, here I stand before you(metaphorically) in another very great day,
Here I spent a lot of time learning how to code for SAMP servers, fixing my mistakes in code, learning new algorithms and so...
And here I am, after a sweet time learning for such great community tutors, presenting my very first filterscript,

Menu

  • Menu
  • Credits
  • Description
  • What's new
  • Update Log
  • Preview
  • The Use
  • Download
  • Credits



Credits
Credits first because they are more important!
Code:
    **a_samp			     SA_MP team
    **a_mysql			     BlueG              > github.com/pBlueG/SA-MP-MySQL/releases/tag/R41-2
    **streamer			     incognito          > github.com/samp-incognito/samp-streamer-plugin/releases/tag/v2.9.1
    **sscanf2			     Y_Less             > github.com/maddinat0r/sscanf/releases/tag/v2.8.2
    **iZCMD			     Zeex / Yashas      > github.com/YashasSamaga/I-ZCMD
    **YSI\y_timers		     Y_Less             > github.com/Misiur/YSI
    **Filterscript and Include:      Oussama

Description
This is a project started in the 1st September 2016, It's an ongoing project, which would provide new features every update, as well as a regular update schedule,
This is a VIP based system filerscript, which would focus on granting you an ideal VIP system, and the less complicated overall previous ones,

What's new
  • *VIP Expiration is more solid now, and will automatically reset expired VIP accounts
  • *Many bug fixes
  • *Script Optimisation

Update log
Quote:

( v1.7 ) Released 10th July2017


-Converted to MySQL
-VIP Toys readded
-Many bug fixes



( v1.6 ) Released 30th Junary 2017


-Converted to SQLite
-Added a new RCON admin command /vipcount
-Many bug fixes




( v1.4 ) Released 13th Septembre 2016


-/vipcmd is updated
-/viphelp is updated
-More colors added to texts
-Added /isvip tp check if a player is VIP or not
-Added /vipgpp - you can create any gun pack preset to be able to spawn it via /vipgp (only for level 4)
-Added /viptoys - you can attach objects to your character, (around +230 objects)
-You would see a Game text when demoted/promoted on your VIP Status
-You can check if a someone is a VIP or not with a single click on his name
-only available Weather ids would be shown

-Yet a Massive script optimization
-Strings were extended to hold more data
-Spawn in bug option displaying in /vipacc bug fixed
-few objects removed and replaced by others


( v1.0 ) Released 11th Septembre 2016


-/vipcmd is updated
-/viphelp is updated
-/vips is updated
-Added /vipbtp - allows teleporting to the VIP Lounge (for level 4 only)
-Added /vipwc - change the player's weather (each level has multiple weather Ids to choose from depending on their level)
-Added /vipt - change the player's time
-Added /vipbs - choose whether to spawn in the VIP Base or not
-Added /viptag - can be disabled now
-Added /vipgc - Give money from distance to any player (no matter your distance was between you and them)
-Added /vipskin - change your skin (only for level 3 and 4)

-VIP Level 4 armor reduced to 90%
-when using vehicle commands (/vipnos /vipfix..etc), you would hear a tuning sound if the command executed just fine
-VIPs would receive random Tips every 15mins
-Non-VIPs would receive a ClientMessage advertising on the available VIP levels to motivate them into buying a VIP Account (Timer set to 30 mins)
-level 3 have 5 options of skins to choose between, while for level 4 VIPs it's 10
-/vipcmds is now a Dialog based command (previously it was just ClientMessages)
-/vips is now a Dialog based command (previously it was just ClientMessages)

-Yet another Massive script optimization

-Text bug fixed
-Account types mix bug fixed
-Gate noise can be heard inside of the VIP Lounge bug fixed
-/vipacc account type string extended

-Map Tweaking

( v0.8 ) Released 9th Septembre 2016

-/vipcmd is updated
-Added /vipgp, loads the user with different set of guns depending on their VIP Level for (Level 2, 3 and 4 VIPs), it's also closed between a timer of 15mins, and won't function unless a whole 15mins expires from last use
-Added /viptag , sticks a 3d Text on VIPs to let them show off their Level
- Added /vipnos installs nitrous in a vehicle
-Added /vipefix fix vehicle engine (Level 2, 3 and 4)
-Added /vipbfix fix vehicle body (for level 4 only)
-Added /flip flips a vehicle

-VIP Gates are automatically closed after 6 seconds if none closed them
-Gates make some noise when opening/closing for mo realistic feel
-VIP Cars have a 3d Text labeling them(only visible when getting closer to them)
-Whenever someone enters/leaves in the VIP Lounge, only VIPs inside would get the client message informing them about their actions,
-When the VIP Vehicle gets destroyed, the 3d Text label will too, and will be spanwed with it after 5seconds
-All VIP Cars have nitrous installed

-Massive script optimization(in earlier versions amx file = 375kb// now it's 58kb)

-Bug /vipcmds fixed
-Bug VIP Gates fixed

-VIP Vehicles reduced to 37 (38 vehicles previously)
-Many map tweaking has been made

(v0.5) Released 7th Septembre 2016
-/vipcmd is updated

-VIP Cars are set to Yellow colour
-Non_VIP players would be ejected from VIP cars once they try to hijack them
-VIP Base Gate added (can be opened/closed with a single "N" press)
-Whenever someone enters in the VIP Lounge, all VIPs would be receiving a Client Message informing about that
-More colours Added to texts for a better appearance

-Data would be saved every time a player disconnects to recover lost data

-VIP Timer kill bug fixed

-38 Vehicles added to the VIP Base
-3D Label added to the Lounge entrance
-VIP Mansion can be accessible


(v0.3.5) Released 6th Septembre 2016
-Added /vipacc command - Displays extra info about one's VIP level (Rank, Account type, registration date, days left...)
-Added /carc command - Changed vehicle color (only for VIP level 2, 3 and 4)
-/vipcmd is updated

-added Level 3 VIP would spawn with 40% armour
-added Level 4 VIP would spawn with 100% armour
-/carc command would charge VIP levels with different costs + discounts depending you how high the level is
-Chat clear on spawn
-VIP account will expire after 30 days

-Script optimization
-The date when the VIP account was set is now saved into the VIP .in! file to provide extra information

-Console printf bug fixed

-VIP Lounge walls and lot was specified and partly mapped(work still in process)
-3D label included


(v0.2) Released 6th Septembre 2016
-added /vips command - Displays a list of connected VIPs
-added /vipcmds command - Displays a useful collection of VIP commands
-added /viphelp command - Displays some more info related to one's VIP level

-added Level 3 VIP would spawn with 40% armor
-added Level 4 VIP would spawn with 100% armor Spawn text bug fixed

-Spawn text bug fixed


(v0.1) Released 5th Septembre 2016
- 4 different VIP levels
Quote:
Rank 1: Silver Account
Rank 2: Gold Account
Rank 3: Platinum Account
Rank 4: Diamond Account
- Data Saving system, with YSI\y_ini from y_less
- /vc [message]: VIP Chat
Preview



Imagur Album: http://imgur.com/a/ciHuM

The Use
**To set someone's VIP level, you should:
1- Login as RCON Admin (/rcon login (ROCN password)
2- Use /setvip (playerid) (VIP level[1, 2, 3, 4])

**To set someone's VIP level, you should:
1- Login as RCON Admin (/rcon login (ROCN password)
2- Use /setvip (playerid) (0)


Installation

There is a note within the Downloaded folder with all installation details

Usage
There are few useful functions in eovip.inc
Code:
native SetPlayerVIPLevel(playerid, vlevel);

native IsPlayerVIP(playerid);

native GetPlayerVIPLevel(playerid);

native GetPlayerVIPName(playerid);

native IsPlayerVIPTagActive(playerid);

native TogglePlayerVIPTag(playerid, param = true);

native IsVIPVehicle(vehicleid);

native CreateVIPVehicles();

native CreateVIPBase();

native ControllVIPGate(action);

native IsVIPGateOpened();

native SendClientMessageToAllVIPs(const message[], color);
Adding more commands is easy,
PHP Code:
CMD:mycommand(playerid)
{
    if(
IsPlayerVIP(playerid) == false) return SendClientMessage(playerid0xFF000080"[ERROR]: You are not a VIP!");

    
// Your code here


PHP Code:
CMD:anothercommand(playerid)
{
    if(
GetPlayerVIPLevel(playerid) == 2) return SendClientMessage(playerid0xFF000080" You are VIP level 2!");

    else if(
GetPlayerVIPLevel(playerid) == 3) return SendClientMessage(playerid0xFF000080" You are VIP level 3!"); 

That simple!

Download

Mediafire
http://www.mediafire.com/file/1wwz47...EOVIP_v1.8.rar

Dropbox
https://www.dropbox.com/s/d69co7rz5n..._v1.8.rar?dl=0

Github
https://github.com/EOussama/EO_VIP

PastBin
Filterscript : https://pastebin.com/YXe1WxKP
Include : https://pastebin.com/qTJWH379


NOTE: Do not sell this filterscript, such acts would not be tolerated

If you liked it, give it a +REP
__________________

Last edited by Eoussama; 13/07/2017 at 01:27 PM. Reason: Updates
Eoussama is offline   Reply With Quote
Old 05/10/2016, 08:29 PM   #2
Eoussama
High-roller
 
Eoussama's Avatar
 
Join Date: Jul 2016
Location: Kingdom of Morocco // Tangier
Posts: 1,078
Reputation: 149
Default Re: EO_VIP system

Quote:
Originally Posted by Eoussama View Post
[/url]
EO_VIP system Version 0.8
Greetings
Hello there everybody, here I stand before you(metaphorically) in another very great day,
Here I spent a lot of time learning how to code for SAMP servers, fixing my mistakes in code, learning new algorithms and so..
And here I am, after a sweet time learning for such great community tutors, presenting my very first filterscript,

Description
This is a project started in the 1th September 2016, It's an ongoing project, which would provide new features every update, as well as a regular update schedule,
This is a VIP based system filerscript, which would focus on granting you an ideal VIP system, and the less complicated overall previous ones,

Features
-well, this is just the first version, so it has just the basics for the system to keep running,-
VIP Accounts
- 4 different VIP levels

**Note: Rank 0 is Normal Account(non-VIP Account)
Database
- Data Saving system, with YSI\y_ini from y_less
Commands
- /vc [message]: VIP Chat

The use
to make someone a VIP, you should log in as RCON, then use /setvip (playerid) (VIP level)

Download
MediaFire
http://www.mediafire.com/file/s20rri..._O_VIP+v0.1.7z


DropBox
https://www.dropbox.com/home/FilterS..._O_VIP+v0.1.7z


More Features on Version 0.2
Thread updated
__________________

Last edited by Eoussama; 10/10/2016 at 10:24 AM.
Eoussama is offline   Reply With Quote
Old 05/10/2016, 08:40 PM   #3
Younes44
Gangsta
 
Younes44's Avatar
 
Join Date: Oct 2013
Posts: 823
Reputation: 78
Default Re: EO_VIP system

Well i will test it and i will tell you my openion :c
Added Pastbin code+ some Pictures..
__________________
Currently Playing on - MW4
IP: 5.39.27.222:7777
Name: Bryan_ Retired Staff
Code:
FOK University, FOK Everything
Younes44 is offline   Reply With Quote
Old 05/10/2016, 09:53 PM   #4
Eoussama
High-roller
 
Eoussama's Avatar
 
Join Date: Jul 2016
Location: Kingdom of Morocco // Tangier
Posts: 1,078
Reputation: 149
Default Re: EO_VIP system

Quote:
Originally Posted by Younes44 View Post
Well i will test it and i will tell you my openion :c
Added Pastbin code+ some Pictures..
Sure, dying to hear your feedback
__________________
Eoussama is offline   Reply With Quote
Old 06/10/2016, 01:03 PM   #5
UberEverywhere
Big Clucker
 
UberEverywhere's Avatar
 
Join Date: Aug 2016
Location: United Arab Emirates
Posts: 60
Reputation: 9
Default Re: EO_VIP system

It's awesome... I Added a few cmds
UberEverywhere is offline   Reply With Quote
Old 06/10/2016, 02:37 PM   #6
Eoussama
High-roller
 
Eoussama's Avatar
 
Join Date: Jul 2016
Location: Kingdom of Morocco // Tangier
Posts: 1,078
Reputation: 149
Default Re: EO_VIP system

Filterscript updated,
http://forum.sa-mp.com/showthread.php?t=618479
__________________
Eoussama is offline   Reply With Quote
Old 06/10/2016, 04:39 PM   #7
Younes44
Gangsta
 
Younes44's Avatar
 
Join Date: Oct 2013
Posts: 823
Reputation: 78
Default Re: EO_VIP system

Quote:
Originally Posted by Eoussama View Post
Ehh ?..
why to create another thread ? just update ur thread Here..
and i'am still waiting Images/Vide ?
__________________
Currently Playing on - MW4
IP: 5.39.27.222:7777
Name: Bryan_ Retired Staff
Code:
FOK University, FOK Everything
Younes44 is offline   Reply With Quote
Old 07/10/2016, 01:38 AM   #8
Dayrion
High-roller
 
Dayrion's Avatar
 
Join Date: Jan 2016
Location: France
Posts: 1,440
Reputation: 120
Default Re: EO_VIP system

Please, post a pastebin link.
I'll check it.
EDIT:
Use switch instead of else if like:
PHP Code:
stock ErrorMessages(playeriderrorID)
{
    if(
errorID == 1
    if(
errorID == 2)  return SendClientMessage(playerid,RED,"ERROR: Player is not connected");
    if(
errorID == 3)  
    if(
errorID == 4)  
    if(
errorID == 5
    return 
1;

to
PHP Code:
ErrorMessages(playeriderrorID)
{
    switch(
errorID)
    {
        case 
: return SendClientMessage(playerid,RED,"ERROR: You are not a VIP");
        case 
: return SendClientMessage(playerid,RED,"ERROR: Player is not connected");
        case 
: return SendClientMessage(playerid,RED,"ERROR: You need to be VIP level 2 or above to use this command");
        case 
: return SendClientMessage(playerid,RED,"ERROR: You need to be VIP level 3 or above to use this command");
        case 
: return SendClientMessage(playerid,RED,"ERROR: You need to be VIP level 4 to use this command");
    }
    return 
1;

By the way, you don't need stock as a filterscript.
There is too many useless callback called there.
__________________
What matters isn't to going further, it's the way to get there
Dayrion is offline   Reply With Quote
Old 07/10/2016, 01:56 AM   #9
Type-R
Huge Clucker
 
Type-R's Avatar
 
Join Date: Feb 2011
Posts: 294
Reputation: 0
Default Re: EO_VIP system

Sorry for the offtopic, but why is it better to use switch than else if??
__________________
Type-R is offline   Reply With Quote
Old 07/10/2016, 02:17 PM   #10
Eoussama
High-roller
 
Eoussama's Avatar
 
Join Date: Jul 2016
Location: Kingdom of Morocco // Tangier
Posts: 1,078
Reputation: 149
Default Re: EO_VIP system

UPDATED To V0.3.5
NEW FEATURES
__________________
Eoussama 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
[FilterScript] NRank System V1.0 | Advanced Rank System | 5+ Commands | Dialog System [Much More] Nirzor Filterscripts 9 18/04/2014 10:49 PM
[FilterScript] Cross Admin System V1.2 [updated] + Added IRC System + Anti Cheat(sscanf, dcmd,y_ini) No.1 Admin System CROSS_Hunter Filterscripts 21 02/01/2013 07:32 PM
[FilterScript] Cross Admin System V1.1 [updated] + Added V.I.P System(sscanf, dcmd,y_ini) No.1 Admin System CROSS_Hunter Filterscripts 8 10/09/2012 12:18 PM
[HELP] Robbery system, tax system, houseing system Commander_Shaw Help Archive 3 15/09/2010 05:18 AM


All times are GMT. The time now is 02:00 AM.


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