16.01.2013, 23:42
(
Последний раз редактировалось Fernado Samuel; 02.06.2013 в 21:47.
)
Removed, thanks for the help!
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);
}
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", 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);