Vip not showing command
#1

Help.
the commad look like a clean up chat command.
not showing the commands.


PHP код:
stock VipName(playerid)
{
    new 
StringLevel[128];
    switch(
Pinfo[playerid][VipLevel])
    {
        case 
1StringLevel "Vip";
        case 
2StringLevel "Silver-Vip";
        case 
3StringLevel "Gold-Vip";
        case 
4StringLevel "Vip-Manager";
        case 
5StringLevel "Vip-Co-Owner";
        case 
6StringLevel "Vip-Owner";
    }
    return 
StringLevel;
}
COMMAND:vips(playeridparams[])
{
    
#pragma unused params
    
new Count;
    new 
str[45];
    
SendClientMessage(playerid, -1"Vip online:");
    for(new 
0MAX_PLAYERS++)
    {
        if(
Pinfo[playerid][VipLevel] >= 1)
        {
            
Count ++;
            
format(strsizeof str"%s %s"VipName(i));
            
SendClientMessage(playerid, -1str);
        }
    }
    if(
Count 1SendClientMessage(playerid, -1"No Vip Online!");
    
// Let the server know that this was a valid command
    
return 1;

Reply


Messages In This Thread
Vip not showing command - by DerickClark - 06.04.2013, 16:56
AW: Vip not showing command - by Skimmer - 06.04.2013, 17:04
Re: Vip not showing command - by Vince - 06.04.2013, 17:07
AW: Vip not showing command - by Skimmer - 06.04.2013, 17:09
Re: Vip not showing command - by DerickClark - 06.04.2013, 17:09
Re: Vip not showing command - by DerickClark - 06.04.2013, 17:13

Forum Jump:


Users browsing this thread: 1 Guest(s)