Need help with /vips command
#8

Quote:
Originally Posted by varthshenon
Посмотреть сообщение
READ THIS BEFORE POSTING! (RULES TO FOLLOW)

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmdtext, "/vips", true) == 0)
    {
        new str[128];
        for(new i = 0; i < MAX_PLAYERS; i ++)
        {
            if(IsPlayerConnected(i))
            {
                GetPlayerName(i, str, 24);
                if(IsPlayerVipType(i,1)) format(str, sizeof str, ">> %s [ID %d] - VIP Silver", str, i);
                if(IsPlayerVipType(i,2)) format(str, sizeof str, ">> %s [ID %d] - VIP Gold", str, i);
                if(IsPlayerVipType(i,3)) format(str, sizeof str, ">> %s [ID %d] - VIP Premium", str, i);
                SendClientMessage(playerid, 0xFFFF00FF, str);
            }
        }
        return 1;
    }
    return 0;
}
That's the exact same code the other showed me. Learn to actually help others not copy and paste what other people say just so you can have more posts
Reply


Messages In This Thread
Need help with /vips command - by Aleks1337 - 26.07.2011, 20:46
Re: Need help with /vips command - by sleepysnowflake - 26.07.2011, 20:48
Re: Need help with /vips command - by Aleks1337 - 26.07.2011, 21:02
Re: Need help with /vips command - by Shadoww5 - 26.07.2011, 21:41
Re: Need help with /vips command - by Aleks1337 - 26.07.2011, 21:53
Re: Need help with /vips command - by Aleks1337 - 27.07.2011, 01:47
Re: Need help with /vips command - by =WoR=Varth - 27.07.2011, 01:56
Re: Need help with /vips command - by Aleks1337 - 27.07.2011, 02:02
Re: Need help with /vips command - by =WoR=Varth - 27.07.2011, 02:13
Re: Need help with /vips command - by Shockey HD - 27.07.2011, 02:18

Forum Jump:


Users browsing this thread: 1 Guest(s)