V.I.P Chat
#1

How to Make A V.I.P Chat with OnPlayerText .

pawn Код:
if(PlayerInfo[playerid][pVIP] >= 2)
  {

Now can someone show me how its created please I really need the VIP Chat
Reply
#2

Код:
public OnPlayerText(playerid, text[])
{
	new params[129];
	}
	if(text[0] == '#' && if(PlayerInfo[playerid][pVIP] >= 2)
	{
	    new str[128];
	    format(str, sizeof(str), "VIP CHAT: %s[%d]: %s", GetName(playerid), playerid, text[1]);
	    for(new i = 0; i < MAX_PLAYERS; i++)
	    {
	        if(IsPlayerConnected(i) && if(PlayerInfo[playerid][pVIP] >= 2)
	        {
	            SendClientMessage(i, COLOR_YELLOW, str);
	        }
	    }
	    return 0;
	}
	return 1;
}
Reply
#3

pawn Код:
public OnPlayerText(playerid, text[])
{
    if(text[0] == '@' && if(PlayerInfo[playerid][pVIP] >= 1)
    {
        new str[128];
        new PlayerName[MAX_PLAYER_NAME];
        GetPlayerName(playerid, PlayerName, MAX_PLAYER_NAME);
        format(str, sizeof(str), "VIP CHAT: %s(ID: %d): %s", PlayerName, playerid, text[1]);
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
            if(IsPlayerConnected(i) && PlayerInfo[playerid][pVIP] >= 1)
            {
                SendClientMessage(i, 0x68F20DC8, str);
            }
        }
        return 0;
    }
    return 1;
}
Reply
#4

Copyright^
You little skanky copied my code change the COLOR_YELLOW and the # to @ and the level 2 to 1 wow stupid...
Reply
#5

Your code was wrong anyway...
pawn Код:
public OnPlayerText(playerid, text[])
{
    new params[129];
    }
    if(text[0] == '#' && if(PlayerInfo[playerid][pVIP] >= 2)
    {
        new str[128];
        format(str, sizeof(str), "VIP CHAT: %s[%d]: %s", GetName(playerid), playerid, text[1]);
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
            if(IsPlayerConnected(i) && if(PlayerInfo[playerid][pVIP] >= 2)
            {
                SendClientMessage(i, COLOR_YELLOW, str);
            }
        }
        return 0;
    }
    return 1;
}
Take a closer look. I'd say YOU are the only one 'copying' codes here...
Also take note that Jewell's code is much more correct than yours is... where have you defined COLOR_YELLOW? Are you just assuming the poster would already have this defined?
Reply
#6

Quote:
Originally Posted by Aveger
Посмотреть сообщение
Copyright^
You little skanky copied my code change the COLOR_YELLOW and the # to @ and the level 2 to 1 wow stupid...
You made me laugh.. lol look at your code.. it's bugged. learn proper script first.. it seem you pasted it from somewhere.
and i don't want to copycat a little script like a that. i'm not stupid. i just only pasted the format and string(not from your script), cause it's easy than tying.. probably admin/vip chat are same type.
if you want tell, both codes are made by you. i have no problem. i just wanted help California_ and not copycat a little script..
Reply
#7

If you continue like this , give him the entire code, he won't learn anything, just to copy....
Ok , give him a hint , or a tip but you did not help him if you give the entire code scripted by you....
making a vip chat is easy..., let he doing his own.....maybe he have other ideeas , or other things
When i was on the beggining i posted on this forum , only when i had a error or a question , but i didn't ask other to make scripts for me...
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)