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.