Separate vip and admin
#1

Removed, thanks for the help!
Reply
#2

Wow it's hard to understand what you mean. So level 1-3 is VIP and level 4 or more is admin? Try this...
pawn Код:
if(pInfo[playerid][level] > 3)
{
    format(string, sizeof(string), "Admin level: %d VIP level: 3",pInfo[playerid][level]); // Since max vip level is 3...
    SendClientMessage(playerid, -1, string);
}
else
{
    format(string, sizeof(string), "VIP level: %d",pInfo[playerid][level]);
    SendClientMessage(playerid, -1, string);
}
Reply
#3

Quote:
Originally Posted by Fabio11
Посмотреть сообщение
Wow it's hard to understand what you mean. So level 1-3 is VIP and level 4 or more is admin? Try this...
pawn Код:
if(pInfo[playerid][level] > 3)
{
    format(string, sizeof(string), "Admin level: %d VIP level: 3",pInfo[playerid][level]); // Since max vip level is 3...
    SendClientMessage(playerid, -1, string);
}
else
{
    format(string, sizeof(string), "VIP level: %d",pInfo[playerid][level]);
    SendClientMessage(playerid, -1, string);
}
Close, but I'm not sure if he wants it to say VIP Level if they're an admin. He hasn't created a pInfo[playerid][VIP] variable, and if he doesn't want to create one, that's fine, so I think if it's level 1-3, it's a VIP, any levels above is an admin.

pawn Код:
if(pInfo[playerid][level] > 3)
{
    format(string, sizeof(string), "Admin Level: %d", pInfo[playerid][level]);
}
else if(pInfo[playerid][level] < 4 && pInfo[playerid][level] > 0) //We don't want a VIP level to show for Level 0 (I'm presuming :S)
{
    format(string, sizeof(string), "VIP Level: %d", pInfo[playerid][level]);
}
SendClientMessage(playerid, -1, string);
Yeah you were basically right anyway Fabio.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)