if(Vip[playerid] != 0) format(string,sizeof(string), "{FFFFFF}[%d] [{FF0000}VIP{FFFFFF}] {0080FF}%s", playerid, text);
|
Firstly, please use the correct section of this forum as this is the English section.
Por favor, use a seзгo correta deste fуrum, pois esta й a seзгo em inglкs. Uma mensagem pode aceitar atй 256 caracteres |
public OnPlayerText(playerid, text[])
{
if(Vip[playerid] > 0)
{
if(strcmp(text[0], "#", false) == 0) // the sign to use to text, example # I'm a V.I.P
{
new message[307];
new name[24];
GetPlayerName(playerid, name, sizeof(name));
format(message, sizeof(message), "{FFFFFF}[%d] [{FF0000}VIP{FFFFFF}] {0080FF}%s", playerid, text[1]);
for(new player = 0; player < MAX_PLAYERS; player++)
{
if(IsPlayerConnected(player) && Vip[player] == 1) SendClientMessage(player, color, message);
}
return 0;
}
}
return 1;
}
public OnPlayerText(playerid, text[])
{
if(Vip[playerid] > 0)
{
new message[307];
new name[24];
GetPlayerName(playerid, name, sizeof(name));
format(message, sizeof(message), "{FFFFFF}[%d] [{FF0000}VIP{FFFFFF}] {0080FF}%s", playerid, text[1]);
SendClientMessageToAll(color, message);
return 0;
}
return 1;
}