23.10.2012, 13:15
Try doing this.
On top of your script.
Then copy your old vip commands and change their names to w/e you want to (/settempvip [playerid] [type]) and put this inside.
and on
OnPlayerConnect - add this
Hope I helped you.
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
Код:
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
OnPlayerConnect - add this
Код:
(tempvip1[playerid] = 0); (tempvip2[playerid] = 0); (tempvip3[playerid] = 0); // reseting the player's vip level if he disconnect/connect again