05.05.2013, 16:22
So... I am going to do my best to explain this... So lets say you are a VIP, level 2 and you use a command /vip and you there is a choice 'community specials' you click on that and you go with the one that says 'refill health' you then see test saying 'Warning: VIP level, Name, has refilled everyones health.' but now lets say if you are level 1 VIP you see this... 'Warning: VIP level, Name, has refilled everyones health.' but it would show up as lets say a brown color... now if you are level 3 vip you still see the same message but in a diff color.. Hope you can help
Код:
else if(dialogid == 26)
{
if(response)
{
new string[128];
switch(listitem)
{
case 0:
{
if(PlayerInfo[playerid][pLPoints] < 2) return SendClientMessage(playerid, COLOR_GREY, "You don't have enough loyalty points for this.");
foreach(Player, i)
{
SetPlayerHealth(i, 100);
}
format(string, sizeof(string), "Warning: %s %s has used their VIP points to refill everyones Health.", RPVIPN(playerb), RPN(playerid));
PlayerInfo[playerid][pLPoints] -= 2;
LHealth = 120;
}
case 1:
{
if(PlayerInfo[playerid][pLPoints] < 4) return SendClientMessage(playerid, COLOR_GREY, "You don't have enough loyalty points for this.");
for(new i=0; i<MAX_VEHICLES; i++)
{
RepairVehicle(i);
}
format(string, sizeof(string), "LoyalWarn: %s %s has repaired all vehicles.", RPN(playerid));
PlayerInfo[playerid][pLPoints] -= 4;
LFix = 120;
}
case 2:
{
if(PlayerInfo[playerid][pLPoints] < 6) return SendClientMessage(playerid, COLOR_GREY, "You don't have enough loyalty points for this.");
for(new i=0; i<MAX_VEHICLES; i++)
{
Fuel[i] = 100;
}
format(string, sizeof(string), "LoyalWarn: Loyal Player %s has refilled all vehicles.", RPN(playerid));
PlayerInfo[playerid][pLPoints] -= 6;
LRefill = 120;
}
}
SendClientMessageToAll(COLOR_LIGHTRED, string);
}
}

