Latest topics
» Unban Appealby VK.Angel.OfDeath Sun Mar 31, 2024 8:29 am
» [Solved] Password Reset
by VK.Angel.OfDeath Sat Mar 23, 2024 9:32 pm
» Ramadan Mubarak in Advance
by Shafin Sat Mar 23, 2024 1:52 pm
» Fatal Force - F2
by [F2]M60^ Sat Feb 24, 2024 4:07 pm
» Illegal Immigration | Old Memories | 2017
by BlackOps_Killer Fri Feb 09, 2024 5:25 pm
» VKs and VCMP Previews
by SJHere Sat Jan 20, 2024 1:51 pm
» The Resurgence 4th Year of Anniversary!
by Ninja Tue Jan 16, 2024 10:30 am
» [Solved]Stats Transfer application - Shado[W]^
by SJHere Mon Nov 27, 2023 5:06 pm
» Hi to all my good friends
by VK.Angel.OfDeath Sat Nov 18, 2023 9:04 am
» [Closed] Admin Application - F2.Ninja
by VK.Angel.OfDeath Sat Nov 18, 2023 8:49 am
» [Closed] Suggestion - We can change weather in props
by VK.Angel.OfDeath Sat Nov 18, 2023 8:45 am
» [Denied] Suggestion - Garbageman Job
by VK.Angel.OfDeath Sat Nov 04, 2023 8:27 pm
» Server Files (24/10/2023)
by VK.Angel.OfDeath Sun Oct 29, 2023 1:22 pm
» [Accepted] playaaa, ULK.Hulk. [M4]Halilibow - speed hacking in parkours
by VK.Angel.OfDeath Sun Oct 29, 2023 1:15 pm
» [Solved] Password Reset- TrapHole
by VK.Angel.OfDeath Sun Oct 29, 2023 1:13 pm
» [Solved] Request for Password Reset (2)
by VK.Angel.OfDeath Sat Oct 21, 2023 1:14 pm
» [Solved] Password Rest
by [RPG]G_man Thu Oct 05, 2023 9:07 pm
» [Noted] FPV Suggestion
by SJHere Sat Sep 02, 2023 8:31 pm
» [Solved] Pass Reset Application Foster^
by VK.Angel.OfDeath Fri Jul 28, 2023 12:00 pm
» Wanna start over again?
by palestrino Wed Jul 26, 2023 2:06 am
» hey guys <3
by D@Ch0uChI. Thu Jul 13, 2023 1:51 am
» [Solved] Stats Transfer
by SJHere Sat Jun 17, 2023 6:03 pm
» [Solved] Password Reset
by D4rKR420R Wed May 24, 2023 1:36 am
» Let's all gather after May in VKs
by Mike Sat May 20, 2023 4:55 pm
» [Denied] Player report - [ON]HunTinG
by D4rKR420R Tue May 02, 2023 5:25 am
» Hi halo here
by Alone Sun Apr 30, 2023 11:28 am
» An old Player Of Vks
by Alone Sat Apr 22, 2023 12:01 am
» [Bug Report] Bug in /domination - invisible bridge
by VK.Angel.OfDeath Wed Apr 19, 2023 3:38 pm
» [Noted] Bug Report - Zone
by LOGiC ™ Wed Mar 08, 2023 4:52 pm
» [Noted] Just Suggestion
by LOGiC ™ Wed Mar 08, 2023 4:11 pm
Top posters
ЧК. (8555) | ||||
VK.Angel.OfDeath (6454) | ||||
=SdS=KrlozZ... (6433) | ||||
D4rKR420R (5469) | ||||
=KF=Thunder^ (5405) | ||||
Pavonis (5197) | ||||
SJHere (4421) | ||||
Emma (4261) | ||||
Vipe[R] (3756) | ||||
47. (3704) |
Statistics
We have 1947 registered usersThe newest registered user is Toretto.
Our users have posted a total of 217818 messages in 16809 subjects
Most Viewed Topics
Top posting users this month
No user |
Top posting users this week
No user |
[Denied] VIP System
+3
SuFyastiC
VK.Angel.OfDeath
EK.CrystalBlue
7 posters
VKs Official Server :: Archive :: Server Archive :: Suggestions :: Denied
Page 1 of 1
[Denied] VIP System
This is a VIP system with levels from 1 to 10.
It also comes with a invincibility VIP command that makes the player invincible for 5 minutes, and then a invincible command delay for 30 minutes.
You could make a cmd to set vip levels, a hidden vip package for vip levels or whatever you want.
NOTE: on register, you should add a line on player register: viplevel=0
<dl class="codebox">
<dt>Pawn code:</dt>
<dd>
<code>enum veinfo {
level,
invincible,
invinciblec,
invinciblew,
invinciblewc
}
new vipinfo[MAX_PLAYERS][veinfo];
public OnGameModeInit() {
SetTimer("InvincibleUpdate", 1000, 1)
return 1;
}
public OnPlayerConnect(playerid) {
new ffffiiiilllleeee[128], rreessuulltt;
format(ffffiiiilllleeee, 128, USERS_FILE, gPlayers[playerid]);
rreessuulltt = dini_Int(ffffiiiilllleeee, "viplevel"); //Do not change to dini_get, dini_int gets the value as integer and dini_get gets it as string
vipinfo[playerid][level] = rreessuulltt;
vipinfo[playerid][invincible] = 0;
vipinfo[playerid][invinciblec] = 0;
new mmeessaaggee[230];
format(mmeessaaggee, 230, "VIP Level: [%i]", rreessuulltt);
SendClientMessage(playerid, COLOR_GREEN, mmeessaaggee);
return 1;
}
public InvincibleUpdate() {
for(new plr = 0; plr <= MAX_PLAYERS; plr++){ if(vipinfo[plr][invincible] == 1) {
vipinfo[plr][invinciblec] = vipinfo[plr][invinciblec] + 1;
SetPlayerHealth(plr, 99);
if (vipinfo[plr][invinciblec] >= 300) {
vipinfo[plr][invincible] = 0;
vipinfo[plr][invinciblec] = 0;
vipinfo[plr][invinciblew] = 1;
vipinfo[plr][invinciblewc] = 0;
SendClientMessage(plr, COLOR_GREEN, "5 minutes are over, you lost your invincibility. You can become invincible after 30 minutes again!");
}
if(vipinfo[plr][invinciblew] == 1) {
vipinfo[plr][invinciblewc] = vipinfo[plr][invinciblewc] + 1;
if (vipinfo[plr][invinciblewc] >= 1800) {
vipinfo[plr][invinciblew] = 0;
vipinfo[plr][invinciblewc] = 0;
SendClientMessage(plr, COLOR_GREEN, "30 minutes are over, you can now become invincible again!");
}
}
}
return 1;
}
public OnPlayerCommand(playerid, cmdtext) {
//GUPS Declarations
//Commands
else if(strcmp(cmd, "vip", true) == 0) {
new ttmmpp1[] = strtok(cmdtext, idx);
if (strcmp(ttmmpp1, "cmds", true) == 0) {
SendClientMessage(playerid, COLOR_GREEN, "Level 1 VIP cmds: None");
SendClientMessage(playerid, COLOR_GREEN, "Level 2 VIP cmds: None");
SendClientMessage(playerid, COLOR_GREEN, "Level 3 VIP cmds: None");
SendClientMessage(playerid, COLOR_GREEN, "Level 4 VIP cmds: None");
SendClientMessage(playerid, COLOR_GREEN, "Level 5 VIP cmds: None");
SendClientMessage(playerid, COLOR_GREEN, "Level 6 VIP cmds: None");
SendClientMessage(playerid, COLOR_GREEN, "Level 7 VIP cmds: None");
SendClientMessage(playerid, COLOR_GREEN, "Level 8 VIP cmds: None");
SendClientMessage(playerid, COLOR_GREEN, "Level 9 VIP cmds: None");
SendClientMessage(playerid, COLOR_GREEN, "Level 10 VIP cmds: /c vip invincible");
return 1;
}
if (vipinfo[playerid][level] == 0) SendClientMessage(playerid, COLOR_GREEN, "Error: You are not a VIP member.");
if (vipinfo[playerid][level] == 1) /* VIP Level 1 cmds*/ {
if(strcmp(ttmmpp1, "-vip cmd-", true) == 0) /*This is an example of an VIP cmd*/ {
//code
}
else SendClientMessage(playerid, COLOR_GREEN, "Either the VIP command doesn't exist or you require a higher VIP level. Use /c vip cmds");
}
else if (vipinfo[playerid][level] == 2) /* VIP Level 2 cmds*/ {
//same format as vip level 1
else SendClientMessage(playerid, COLOR_GREEN, "Either the VIP command doesn't exist or you require a higher VIP level. Use /c vip cmds");
}
else if (vipinfo[playerid][level] == 3) /* VIP Level 3 cmds*/ {
//same format as vip level 1
else SendClientMessage(playerid, COLOR_GREEN, "Either the VIP command doesn't exist or you require a higher VIP level. Use /c vip cmds");
}
else if (vipinfo[playerid][level] == 4) /* VIP Level 4 cmds*/ {
//same format as vip level 1
else SendClientMessage(playerid, COLOR_GREEN, "Either the VIP command doesn't exist or you require a higher VIP level. Use /c vip cmds");
}
else if (vipinfo[playerid][level] == 5) /* VIP Level 5 cmds*/ {
//same format as vip level 1
else SendClientMessage(playerid, COLOR_GREEN, "Either the VIP command doesn't exist or you require a higher VIP level. Use /c vip cmds");
}
else if (vipinfo[playerid][level] == 6) /* VIP Level 6 cmds*/ {
//same format as vip level 1
else SendClientMessage(playerid, COLOR_GREEN, "Either the VIP command doesn't exist or you require a higher VIP level. Use /c vip cmds");
}
else if (vipinfo[playerid][level] == 7) /* VIP Level 7 cmds*/ {
//same format as vip level 1
else SendClientMessage(playerid, COLOR_GREEN, "Either the VIP command doesn't exist or you require a higher VIP level. Use /c vip cmds");
}
else if (vipinfo[playerid][level] == /* VIP Level 8 cmds*/ {
//same format as vip level 1
else SendClientMessage(playerid, COLOR_GREEN, "Either the VIP command doesn't exist or you require a higher VIP level. Use /c vip cmds");
}
else if (vipinfo[playerid][level] == 9) /* VIP Level 9 cmds*/ {
//same format as vip level 1
else SendClientMessage(playerid, COLOR_GREEN, "Either the VIP command doesn't exist or you require a higher VIP level. Use /c vip cmds");
}
else if (vipinfo[playerid][level] == 10) /* VIP Level 10 cmds*/ {
//same format as vip level 1
if(strcmp(ttmmpp1, "invincible", true) == 0) /*Invincible command*/ {
if(vipinfo[playerid][invincible] == 1) SendClientMessage(playerid, COLOR_GREEN, "You are already invincible.");
else if(vipinfo[playerid][invinciblew] == 1) SendClientMessage(playerid, COLOR_GREEN, "Your 30 minute time isn't over.");
else {
vipinfo[playerid][invincible] = 1;
SendClientMessage(playerid, COLOR_GREEN, "You are invincible for 5 minutes, no one can kill you!");
}
}
else SendClientMessage(playerid, COLOR_GREEN, "The VIP command doesn't exist. Use /c vip cmds");
}
return 1;
}
}</code>
</dd>
</dl>
EDIT: I have edited the code to fix a bug and also add the cmd: /c vip cmds. NOTE: You have to repeat a vip level command on all higher level cmds, for example: if you add cmd: minigun to level 3, you should repeat the code on levels: 4, 5, 6, 7, 8, 9, 10 and of course you must add /c vip on !commands.
It also comes with a invincibility VIP command that makes the player invincible for 5 minutes, and then a invincible command delay for 30 minutes.
You could make a cmd to set vip levels, a hidden vip package for vip levels or whatever you want.
NOTE: on register, you should add a line on player register: viplevel=0
<dl class="codebox">
<dt>Pawn code:</dt>
<dd>
<code>enum veinfo {
level,
invincible,
invinciblec,
invinciblew,
invinciblewc
}
new vipinfo[MAX_PLAYERS][veinfo];
public OnGameModeInit() {
SetTimer("InvincibleUpdate", 1000, 1)
return 1;
}
public OnPlayerConnect(playerid) {
new ffffiiiilllleeee[128], rreessuulltt;
format(ffffiiiilllleeee, 128, USERS_FILE, gPlayers[playerid]);
rreessuulltt = dini_Int(ffffiiiilllleeee, "viplevel"); //Do not change to dini_get, dini_int gets the value as integer and dini_get gets it as string
vipinfo[playerid][level] = rreessuulltt;
vipinfo[playerid][invincible] = 0;
vipinfo[playerid][invinciblec] = 0;
new mmeessaaggee[230];
format(mmeessaaggee, 230, "VIP Level: [%i]", rreessuulltt);
SendClientMessage(playerid, COLOR_GREEN, mmeessaaggee);
return 1;
}
public InvincibleUpdate() {
for(new plr = 0; plr <= MAX_PLAYERS; plr++){ if(vipinfo[plr][invincible] == 1) {
vipinfo[plr][invinciblec] = vipinfo[plr][invinciblec] + 1;
SetPlayerHealth(plr, 99);
if (vipinfo[plr][invinciblec] >= 300) {
vipinfo[plr][invincible] = 0;
vipinfo[plr][invinciblec] = 0;
vipinfo[plr][invinciblew] = 1;
vipinfo[plr][invinciblewc] = 0;
SendClientMessage(plr, COLOR_GREEN, "5 minutes are over, you lost your invincibility. You can become invincible after 30 minutes again!");
}
if(vipinfo[plr][invinciblew] == 1) {
vipinfo[plr][invinciblewc] = vipinfo[plr][invinciblewc] + 1;
if (vipinfo[plr][invinciblewc] >= 1800) {
vipinfo[plr][invinciblew] = 0;
vipinfo[plr][invinciblewc] = 0;
SendClientMessage(plr, COLOR_GREEN, "30 minutes are over, you can now become invincible again!");
}
}
}
return 1;
}
public OnPlayerCommand(playerid, cmdtext) {
//GUPS Declarations
//Commands
else if(strcmp(cmd, "vip", true) == 0) {
new ttmmpp1[] = strtok(cmdtext, idx);
if (strcmp(ttmmpp1, "cmds", true) == 0) {
SendClientMessage(playerid, COLOR_GREEN, "Level 1 VIP cmds: None");
SendClientMessage(playerid, COLOR_GREEN, "Level 2 VIP cmds: None");
SendClientMessage(playerid, COLOR_GREEN, "Level 3 VIP cmds: None");
SendClientMessage(playerid, COLOR_GREEN, "Level 4 VIP cmds: None");
SendClientMessage(playerid, COLOR_GREEN, "Level 5 VIP cmds: None");
SendClientMessage(playerid, COLOR_GREEN, "Level 6 VIP cmds: None");
SendClientMessage(playerid, COLOR_GREEN, "Level 7 VIP cmds: None");
SendClientMessage(playerid, COLOR_GREEN, "Level 8 VIP cmds: None");
SendClientMessage(playerid, COLOR_GREEN, "Level 9 VIP cmds: None");
SendClientMessage(playerid, COLOR_GREEN, "Level 10 VIP cmds: /c vip invincible");
return 1;
}
if (vipinfo[playerid][level] == 0) SendClientMessage(playerid, COLOR_GREEN, "Error: You are not a VIP member.");
if (vipinfo[playerid][level] == 1) /* VIP Level 1 cmds*/ {
if(strcmp(ttmmpp1, "-vip cmd-", true) == 0) /*This is an example of an VIP cmd*/ {
//code
}
else SendClientMessage(playerid, COLOR_GREEN, "Either the VIP command doesn't exist or you require a higher VIP level. Use /c vip cmds");
}
else if (vipinfo[playerid][level] == 2) /* VIP Level 2 cmds*/ {
//same format as vip level 1
else SendClientMessage(playerid, COLOR_GREEN, "Either the VIP command doesn't exist or you require a higher VIP level. Use /c vip cmds");
}
else if (vipinfo[playerid][level] == 3) /* VIP Level 3 cmds*/ {
//same format as vip level 1
else SendClientMessage(playerid, COLOR_GREEN, "Either the VIP command doesn't exist or you require a higher VIP level. Use /c vip cmds");
}
else if (vipinfo[playerid][level] == 4) /* VIP Level 4 cmds*/ {
//same format as vip level 1
else SendClientMessage(playerid, COLOR_GREEN, "Either the VIP command doesn't exist or you require a higher VIP level. Use /c vip cmds");
}
else if (vipinfo[playerid][level] == 5) /* VIP Level 5 cmds*/ {
//same format as vip level 1
else SendClientMessage(playerid, COLOR_GREEN, "Either the VIP command doesn't exist or you require a higher VIP level. Use /c vip cmds");
}
else if (vipinfo[playerid][level] == 6) /* VIP Level 6 cmds*/ {
//same format as vip level 1
else SendClientMessage(playerid, COLOR_GREEN, "Either the VIP command doesn't exist or you require a higher VIP level. Use /c vip cmds");
}
else if (vipinfo[playerid][level] == 7) /* VIP Level 7 cmds*/ {
//same format as vip level 1
else SendClientMessage(playerid, COLOR_GREEN, "Either the VIP command doesn't exist or you require a higher VIP level. Use /c vip cmds");
}
else if (vipinfo[playerid][level] == /* VIP Level 8 cmds*/ {
//same format as vip level 1
else SendClientMessage(playerid, COLOR_GREEN, "Either the VIP command doesn't exist or you require a higher VIP level. Use /c vip cmds");
}
else if (vipinfo[playerid][level] == 9) /* VIP Level 9 cmds*/ {
//same format as vip level 1
else SendClientMessage(playerid, COLOR_GREEN, "Either the VIP command doesn't exist or you require a higher VIP level. Use /c vip cmds");
}
else if (vipinfo[playerid][level] == 10) /* VIP Level 10 cmds*/ {
//same format as vip level 1
if(strcmp(ttmmpp1, "invincible", true) == 0) /*Invincible command*/ {
if(vipinfo[playerid][invincible] == 1) SendClientMessage(playerid, COLOR_GREEN, "You are already invincible.");
else if(vipinfo[playerid][invinciblew] == 1) SendClientMessage(playerid, COLOR_GREEN, "Your 30 minute time isn't over.");
else {
vipinfo[playerid][invincible] = 1;
SendClientMessage(playerid, COLOR_GREEN, "You are invincible for 5 minutes, no one can kill you!");
}
}
else SendClientMessage(playerid, COLOR_GREEN, "The VIP command doesn't exist. Use /c vip cmds");
}
return 1;
}
}</code>
</dd>
</dl>
EDIT: I have edited the code to fix a bug and also add the cmd: /c vip cmds. NOTE: You have to repeat a vip level command on all higher level cmds, for example: if you add cmd: minigun to level 3, you should repeat the code on levels: 4, 5, 6, 7, 8, 9, 10 and of course you must add /c vip on !commands.
Last edited by NE.Restricted on Sat Mar 22, 2014 8:12 am; edited 3 times in total
EK.CrystalBlue- Deputy Chief of the Community
-
Posts : 3621
Points : 4218
Reputation : 28
Join date : 2012-10-31
Age : 31
Location : I am CRYSTAL u never found me!!!!!
Re: [Denied] VIP System
looks good on first look. I only got one comment at the moment looking at your code I don't think it would work to have a timer that loops once.
VK.Angel.OfDeath- Server Owner & Forum Admin
- Posts : 6454
Points : 9307
Reputation : 127
Join date : 2012-10-28
Age : 29
Location : Sweden
Re: [Denied] VIP System
VK.Angel.OfDeath wrote:looks good on first look.
SuFyastiC- Ultra Legendary
- Gender :
Posts : 2124
Points : 2787
Reputation : 20
Join date : 2013-07-04
Re: [Denied] VIP System
What do you mean?VK.Angel.OfDeath wrote:looks good on first look. I only got one comment at the moment looking at your code I don't think it would work to have a timer that loops once.
EDIT: if you mean by that that it only loops twice, wrong, it doesn't loop twice, it loops once every 1 second.
EK.CrystalBlue- Deputy Chief of the Community
-
Posts : 3621
Points : 4218
Reputation : 28
Join date : 2012-10-31
Age : 31
Location : I am CRYSTAL u never found me!!!!!
Re: [Denied] VIP System
good suggestion!
Emma- Event Staff
- Gender :
Posts : 4261
Points : 6189
Reputation : 81
Join date : 2013-04-25
Age : 19
Location : Next room to angel.Ofnoob (i am Rainbow)
Re: [Denied] VIP System
good suggestion
Chocolate- Active Member
- Gender :
Posts : 127
Points : 204
Reputation : 2
Join date : 2012-10-30
Age : 26
Location : Rawalpindi, Pakistan
Re: [Denied] VIP System
Looks good.
S@M- Veteran Member
- Gender :
Posts : 248
Points : 253
Reputation : 12
Join date : 2013-04-03
Age : 23
Location : Nepal
Re: [Denied] VIP System
i would reccomend posting this code in admin section if you don't want any other server to use it making it private,or if you do want evryone to know well that's your scriptNE.Restricted wrote:This is a VIP system with levels from 1 to 10.
It also comes with a invincibility VIP command that makes the player invincible for 5 minutes, and then a invincible command delay for 30 minutes.
You could make a cmd to set vip levels, a hidden vip package for vip levels or whatever you want.
NOTE: on register, you should add a line on player register: viplevel=0
<dl class="codebox">
<dt>Pawn code:</dt>
<dd>
<code>enum veinfo {
level,
invincible,
invinciblec,
invinciblew,
invinciblewc
}
new vipinfo[MAX_PLAYERS][veinfo];
public OnGameModeInit() {
SetTimer("InvincibleUpdate", 1000, 1)
return 1;
}
public OnPlayerConnect(playerid) {
new ffffiiiilllleeee[128], rreessuulltt;
format(ffffiiiilllleeee, 128, USERS_FILE, gPlayers[playerid]);
rreessuulltt = dini_Int(ffffiiiilllleeee, "viplevel"); //Do not change to dini_get, dini_int gets the value as integer and dini_get gets it as string
vipinfo[playerid][level] = rreessuulltt;
vipinfo[playerid][invincible] = 0;
vipinfo[playerid][invinciblec] = 0;
new mmeessaaggee[230];
format(mmeessaaggee, 230, "VIP Level: [%i]", rreessuulltt);
SendClientMessage(playerid, COLOR_GREEN, mmeessaaggee);
return 1;
}
public InvincibleUpdate() {
for(new plr = 0; plr <= MAX_PLAYERS; plr++){ if(vipinfo[plr][invincible] == 1) {
vipinfo[plr][invinciblec] = vipinfo[plr][invinciblec] + 1;
SetPlayerHealth(plr, 99);
if (vipinfo[plr][invinciblec] >= 300) {
vipinfo[plr][invincible] = 0;
vipinfo[plr][invinciblec] = 0;
vipinfo[plr][invinciblew] = 1;
vipinfo[plr][invinciblewc] = 0;
SendClientMessage(plr, COLOR_GREEN, "5 minutes are over, you lost your invincibility. You can become invincible after 30 minutes again!");
}
if(vipinfo[plr][invinciblew] == 1) {
vipinfo[plr][invinciblewc] = vipinfo[plr][invinciblewc] + 1;
if (vipinfo[plr][invinciblewc] >= 1800) {
vipinfo[plr][invinciblew] = 0;
vipinfo[plr][invinciblewc] = 0;
SendClientMessage(plr, COLOR_GREEN, "30 minutes are over, you can now become invincible again!");
}
}
}
return 1;
}
public OnPlayerCommand(playerid, cmdtext) {
//GUPS Declarations
//Commands
else if(strcmp(cmd, "vip", true) == 0) {
new ttmmpp1[] = strtok(cmdtext, idx);
if (strcmp(ttmmpp1, "cmds", true) == 0) {
SendClientMessage(playerid, COLOR_GREEN, "Level 1 VIP cmds: None");
SendClientMessage(playerid, COLOR_GREEN, "Level 2 VIP cmds: None");
SendClientMessage(playerid, COLOR_GREEN, "Level 3 VIP cmds: None");
SendClientMessage(playerid, COLOR_GREEN, "Level 4 VIP cmds: None");
SendClientMessage(playerid, COLOR_GREEN, "Level 5 VIP cmds: None");
SendClientMessage(playerid, COLOR_GREEN, "Level 6 VIP cmds: None");
SendClientMessage(playerid, COLOR_GREEN, "Level 7 VIP cmds: None");
SendClientMessage(playerid, COLOR_GREEN, "Level 8 VIP cmds: None");
SendClientMessage(playerid, COLOR_GREEN, "Level 9 VIP cmds: None");
SendClientMessage(playerid, COLOR_GREEN, "Level 10 VIP cmds: /c vip invincible");
return 1;
}
if (vipinfo[playerid][level] == 0) SendClientMessage(playerid, COLOR_GREEN, "Error: You are not a VIP member.");
if (vipinfo[playerid][level] == 1) /* VIP Level 1 cmds*/ {
if(strcmp(ttmmpp1, "-vip cmd-", true) == 0) /*This is an example of an VIP cmd*/ {
//code
}
else SendClientMessage(playerid, COLOR_GREEN, "Either the VIP command doesn't exist or you require a higher VIP level. Use /c vip cmds");
}
else if (vipinfo[playerid][level] == 2) /* VIP Level 2 cmds*/ {
//same format as vip level 1
else SendClientMessage(playerid, COLOR_GREEN, "Either the VIP command doesn't exist or you require a higher VIP level. Use /c vip cmds");
}
else if (vipinfo[playerid][level] == 3) /* VIP Level 3 cmds*/ {
//same format as vip level 1
else SendClientMessage(playerid, COLOR_GREEN, "Either the VIP command doesn't exist or you require a higher VIP level. Use /c vip cmds");
}
else if (vipinfo[playerid][level] == 4) /* VIP Level 4 cmds*/ {
//same format as vip level 1
else SendClientMessage(playerid, COLOR_GREEN, "Either the VIP command doesn't exist or you require a higher VIP level. Use /c vip cmds");
}
else if (vipinfo[playerid][level] == 5) /* VIP Level 5 cmds*/ {
//same format as vip level 1
else SendClientMessage(playerid, COLOR_GREEN, "Either the VIP command doesn't exist or you require a higher VIP level. Use /c vip cmds");
}
else if (vipinfo[playerid][level] == 6) /* VIP Level 6 cmds*/ {
//same format as vip level 1
else SendClientMessage(playerid, COLOR_GREEN, "Either the VIP command doesn't exist or you require a higher VIP level. Use /c vip cmds");
}
else if (vipinfo[playerid][level] == 7) /* VIP Level 7 cmds*/ {
//same format as vip level 1
else SendClientMessage(playerid, COLOR_GREEN, "Either the VIP command doesn't exist or you require a higher VIP level. Use /c vip cmds");
}
else if (vipinfo[playerid][level] == /* VIP Level 8 cmds*/ {
//same format as vip level 1
else SendClientMessage(playerid, COLOR_GREEN, "Either the VIP command doesn't exist or you require a higher VIP level. Use /c vip cmds");
}
else if (vipinfo[playerid][level] == 9) /* VIP Level 9 cmds*/ {
//same format as vip level 1
else SendClientMessage(playerid, COLOR_GREEN, "Either the VIP command doesn't exist or you require a higher VIP level. Use /c vip cmds");
}
else if (vipinfo[playerid][level] == 10) /* VIP Level 10 cmds*/ {
//same format as vip level 1
if(strcmp(ttmmpp1, "invincible", true) == 0) /*Invincible command*/ {
if(vipinfo[playerid][invincible] == 1) SendClientMessage(playerid, COLOR_GREEN, "You are already invincible.");
else if(vipinfo[playerid][invinciblew] == 1) SendClientMessage(playerid, COLOR_GREEN, "Your 30 minute time isn't over.");
else {
vipinfo[playerid][invincible] = 1;
SendClientMessage(playerid, COLOR_GREEN, "You are invincible for 5 minutes, no one can kill you!");
}
}
else SendClientMessage(playerid, COLOR_GREEN, "The VIP command doesn't exist. Use /c vip cmds");
}
return 1;
}
}</code>
</dd>
</dl>
EDIT: I have edited the code to fix a bug and also add the cmd: /c vip cmds. NOTE: You have to repeat a vip level command on all higher level cmds, for example: if you add cmd: minigun to level 3, you should repeat the code on levels: 4, 5, 6, 7, 8, 9, 10 and of course you must add /c vip on !commands.
anyway look awesome
Re: [Denied] VIP System
This code is very unstructured and can cause lag. It is also hard to read. So I have to deny this suggestion. I know this is an old suggestion and that are you're much better at scripting now. Anyway thanks for the suggestion.
VK.Angel.OfDeath- Server Owner & Forum Admin
- Posts : 6454
Points : 9307
Reputation : 127
Join date : 2012-10-28
Age : 29
Location : Sweden
Similar topics
» [Denied] Tax System.
» [Denied] Vip System suggestion
» [Denied]Adding a mic system
» [Denied] Tax System(per week)
» [Denied] Gang System
» [Denied] Vip System suggestion
» [Denied]Adding a mic system
» [Denied] Tax System(per week)
» [Denied] Gang System
VKs Official Server :: Archive :: Server Archive :: Suggestions :: Denied
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum