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");}
if(PlayerInfo[playerid][VIPMember] >= 1) {
if(PlayerInfo[playerid][Level] >= 1 || PlayerInfo[playerid][VIPMember] >= 1) {
if (PlayerInfo[playerid][playerVIP] == 1 || PlayerInfo[playerid][playerAdmin] == 1)
{
//run code.
}
CMD:vr(playerid,params[]) {
#pragma unused params
if(PlayerInfo[playerid][Level] >= 1 ||PlayerInfo[playerid][VIPMember] >= ) {
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");}
Are you guys sure that this will let VIPs that arent ADMIN can use the command?
Like are you sure if a player only needs to be in one of the groups to be able to use the command and not the both at same time. |