05.10.2016, 18:51
(
Last edited by Eoussama; 03/03/2018 at 12:24 PM.
Reason: Updates
)
EO_VIP system Version 2.0
(v2.0) Released in 3rd March 2018
(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 > https://github.com/pBlueG/SA-MP-MySQL/re...1.63289747 **streamer incognito > github.com/samp-incognito/samp-streamer-plugin/releases/tag/v2.9.1 **sscanf2 ****** > github.com/maddinat0r/sscanf/releases/tag/v2.8.2 **iZCMD Zeex / Yashas > github.com/YashasSamaga/I-ZCMD **YSI\y_timers ****** > github.com/Misiur/YSI **Filterscript and Include: Oussama
This is a project started on 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
- * Bug fixes.
- * Code optimization.
- * Typo fixes.
- * Enhanced commands.
- * Include compatibility.
Quote:
( v1.8 ) Released 13th July2017 -Script Optimisation -Many bug fixes -VIP Expiration is more solid now, and will automatically reset expired VIP accounts ( 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 color -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 the VIP Lounge, all VIPs would be receiving a Client Message informing about that -More colors 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% armor -added Level 4 VIP would spawn with 100% armor -/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 in the VIP .in! file to provide extra information -Console printf bug fixed -VIP Lounge walls and a 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:
- /vc [message]: VIP Chat |
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 unset someone's VIP level, you should:
1- Login as RCON Admin (/rcon login (ROCN password)
2- Use /setvip (playerid) (0)
Installation
- 1 put EOVIP.pwn inside of your filterscripts folder.
- 2 put eovip.inc inside of pawno/include folder.
- 3 open the EOVIP.pwn with your text editor and compile it.
- 4 go to your server.cfg and add; EOVIP on filterscripts line.
- 5 open up database.sql and execute the code to create a database with the VIPs table.
There are few useful functions in eovip.inc
PHP Code:
//------------------[Player]------------------
native setVIPLevel(playerid, vlevel);
native getVIPLevel(playerid);
native bool:isPlayerVIP(playerid);
native getVIPName(playerid);
native getPlayerAccID(playerid);
native bool:isPlayerVIPTagActive(playerid);
native bool:isVIPInLoungue(playerid);
native TogglePlayerVIPTag(playerid, bool:param);
native SendClientMessageToVIPs(const message[], color, exception = INVALID_PLAYER_ID, minLvl = EOVIP_VIPLEVEL_1, maxLvl = EOVIP_VIPLEVEL_4);
native ResetVIPData(playerid);
native SaveVIPData(playerid, MySQL:handle);
//-------------------[Base]-------------------
native CreateVIPBase();
native ToggleVIPGates(bool:action);
native bool:isVIPGateOpened();
//----------------[Vehicles]------------------
native CreateVIPVehicles();
native bool:isVIPVehicle(vehicleid);
//-----------------[Other]--------------------
native PlaySoundForAll(soundid, Float:posX, Float:posY, Float:posZ);
native StopSoundForAll();
PHP Code:
CMD:mycommand(playerid)
{
if(isPlayerVIP(playerid) == false) return SendClientMessage(playerid, 0xFF000080, "[ERROR]: You are not a VIP!");
// Your code here
}
PHP Code:
CMD:anothercommand(playerid)
{
switch(getVIPLevel())
{
case EOVIP_VIPLEVEL_1: SendClientMessage(playerid, 0xFF000080, " You are VIP level 1!");
case EOVIP_VIPLEVEL_2: SendClientMessage(playerid, 0xFF000080, " You are VIP level 2!");
case EOVIP_VIPLEVEL_3: SendClientMessage(playerid, 0xFF000080, " You are VIP level 3!");
case EOVIP_VIPLEVEL_4: SendClientMessage(playerid, 0xFF000080, " You are VIP level 4!");
default: SendClientMessage(playerid, 0xFF000080, " You are not a VIP!");
}
}
Download
Github
https://github.com/EOussama/EO_VIP
PastBin
Filterscript : https://pastebin.com/D4Esp91W
Include : https://pastebin.com/8YU73n6m
Database : https://pastebin.com/WcfE7ceB
NOTE: Do not sell this filterscript, such acts would not be tolerated
If you liked it, give it a +REP