#3

Try doing this.

On top of your script.


Код:
new tempvip1[MAX_PLAYERS]; // for type 1
new tempvip2[MAX_PLAYERS]; // for type 2
new tempvip3[MAX_PLAYERS]; // for type 3
Then copy your old vip commands and change their names to w/e you want to (/settempvip [playerid] [type]) and put this inside.

Код:
if(tempvip1[playerid] != 0) return SendClientMessage(playerid, red, "This player is already vip type one");
(tempvip1[playerid] = 1); // setting the player temporarily vip status 1
and on

OnPlayerConnect - add this

Код:
(tempvip1[playerid] = 0);
(tempvip2[playerid] = 0);
(tempvip3[playerid] = 0); // reseting the player's vip level if he disconnect/connect again
Hope I helped you.
Reply


Messages In This Thread
VIP - by Red_Dragon. - 23.10.2012, 13:03
Re: VIP - by RLGaming - 23.10.2012, 13:12
Re: VIP - by Dizzle - 23.10.2012, 13:15

Forum Jump:


Users browsing this thread: 2 Guest(s)