[Help] Vip chat
#2

pawn Код:
dcmd_vchat( playerid, params[] )
{
    if( Vip[ playerid ] < 1 )
        return SendClientMessage( playerid, COLOR_CERVENA, "  [!] Only Vips can do that !" );
    if(Vip[playerid] >= 1)
    {
        if(!strlen(params))  return SendClientMessage( playerid, COLOR_CERVENA, "Usage: /vchat [text]" );
        new name[24];
        GetPlayerName(playerid, name, 24);
        new string[300];
        format(string, sizeof(string), "[VIP CHAT] %s [%d]: %s", name, playerid, string[1]);
        for(new i=0; i<MAX_PLAYERS; i++) if(Vip[i]>=1) SendClientMessage(i, COLOR_WHITE, string);
    }
    return 1;
}
Reply


Messages In This Thread
[Help] Vip chat - by ServerScripter - 27.02.2012, 17:12
Re: [Help] Vip chat - by Jeffry - 27.02.2012, 17:14
Re: [Help] Vip chat - by ServerScripter - 27.02.2012, 17:20
Re: [Help] Vip chat - by Zhao - 27.02.2012, 17:27
Re: [Help] Vip chat - by Konstantinos - 27.02.2012, 17:29
Re: [Help] Vip chat - by ServerScripter - 27.02.2012, 17:32
Re: [Help] Vip chat - by Konstantinos - 27.02.2012, 17:34
Re: [Help] Vip chat - by ServerScripter - 27.02.2012, 17:36
Re: [Help] Vip chat - by Twisted_Insane - 27.02.2012, 17:37

Forum Jump:


Users browsing this thread: 1 Guest(s)