A Little Problem !! -
Gursimran - 11.08.2012
Hello Guys ,
i am using luxadmin , and if their are 5-6 VIPS online then it shows VIP list in single line
!! that sucks !!
but i want it to show , if count , vip's more than 3 than it should automaticaly change to another line (2nd line )!!
please help me
thanks
Re: A Little Problem !! -
Gursimran - 11.08.2012
dcmd_viplist(playerid,params[])
{
#pragma unused params
if(AccInfo[playerid][LoggedIn] == 1)
{
if(AccInfo[playerid][Level] >= 0)
{
new bool:First2 = false;
new Count, i;
new string[128];
new adminname[MAX_PLAYER_NAME];
for(i = 0; i < MAX_PLAYERS; i++)
if(IsPlayerConnected(i) && AccInfo[i][pVip] > 0)
Count++;
if(Count == 0)
return SendClientMessage(playerid,red, "No players have VIP Account!");
for(i = 0; i < MAX_PLAYERS; i++)
if(IsPlayerConnected(i) && AccInfo[i][pVip] > 0)
{
if(AccInfo[i][pVip] > 0)
{
switch(AccInfo[i][pVip])
{
case 1: AccType = "Silver";
case 2: AccType = "Gold";
case 3: AccType = "Premium";
}
}
GetPlayerName(i, adminname, sizeof(adminname));
if(!First2)
{
format(string, sizeof(string), "VIP Players: %s(%s)", PlayerName2(i),AccType);
First2 = true;
}
else format(string,sizeof(string),"%s, %s(%s)",string, PlayerName2(i),AccType);
}
return SendClientMessage(playerid,yellow,string);
}
else return ErrorMessages(playerid, 1);
}
else return SendClientMessage(playerid,red,"ERROR: You must be logged in to use this commands");
}
Re: A Little Problem !! -
[MM]RoXoR[FS] - 11.08.2012
pawn Код:
CMD:vips(playerid,params[])
{
#pragma unused params[]
new count = 0,string[250],pName[MAX_PLAYER_NAME];
for(new i=0;i<MAX_PLAYERS;++i)
if(IsPlayerConnected(i) && pInfo[i][VIP]>0)
{
GetPlayerName(i,pName,MAX_PLAYER_NAME);
++count;
if(count % 3 == 0)format(string,sizeof(string),"%s\n",string);
format(string,sizeof(string),"%s | %s(%d)",string,pName,i);
}
SendClientMessage(playerid,-1,string);
return 1;
}
Re: A Little Problem !! -
Gursimran - 11.08.2012
can you help me with teamviewer ?
i can't get it
i got much errors
Re: A Little Problem !! -
Gursimran - 11.08.2012
Teamviewer ID :771 074 175
Pass :- kamal
Re: A Little Problem !! -
[MM]RoXoR[FS] - 11.08.2012
post your error