09.06.2012, 21:07
Hello I want to have a command that can be used for two different groups,
as you can see this command works for admins:
But I want VIPs to able to use the same command:
but I dont know if this works or how I can do it so I need some help please.. :/
as you can see this command works for admins:
pawn Код:
CMD:vr(playerid,params[]) {
#pragma unused params
if(PlayerInfo[playerid][Level] >= 1) {
if (IsPlayerInAnyVehicle(playerid)) {
RepairVehicle(GetPlayerVehicleID(playerid));
SetVehicleHealth(GetPlayerVehicleID(playerid),1000.0);
RecentVR[playerid] =1;
return GameTextForPlayer(playerid,"~green~Vehicle Repaired", 2000, 3);
} else return SendClientMessage(playerid,red,"Error: You are not in a vehicle");
} else return SendClientMessage(playerid,red,"ERROR: You need to be level 1 to use this command");}
pawn Код:
if(PlayerInfo[playerid][VIPMember] >= 1) {