07.01.2011, 01:23
hey all, i'm creating VIP sistem and i need only one thing
i have this
new VIP[MAX_PLAYERS];
if(VIP[playerid] == 1)
at the moment i'm using this command:
but i need something like: /vipon [id] /vipoff [id]
how i can make what i could make other VIP's with command? please help
PROBLEM:
Need /give vip [id] function ar something like this
i have this
new VIP[MAX_PLAYERS];
if(VIP[playerid] == 1)
at the moment i'm using this command:
Код:
if (strcmp(cmd, "/duotivip", true) == 0 || strcmp(cmd, "/vipon", true) == 0) { if(VIP[playerid] == 1) { SendClientMessage(playerid, COLOR_SYSTEM, "You're already VIP!"); } else { VIP[playerid] = 1; SendClientMessage(playerid, COLOR_SYSTEM, "Now you have VIP!"); } return 1; } if (strcmp(cmd, "/atimtivip", true) == 0 || strcmp(cmd, "/vipoff", true) == 0) { if(VIP[playerid] == 0) { SendClientMessage(playerid, COLOR_SYSTEM, "You're not VIP!"); } else { VIP[playerid] = 0; SendClientMessage(playerid, COLOR_SYSTEM, "Your VIP gone!"); } return 1; }
how i can make what i could make other VIP's with command? please help
PROBLEM:
Need /give vip [id] function ar something like this