30.12.2018, 02:07
Estou comeзando a fazer meu sistema de administraзгo e vou comeзar pelo chat.
Sу que estб acontecendo um problema, o timestamp estб totalmente preto, й algo bem feio.
Sу que estб acontecendo um problema, o timestamp estб totalmente preto, й algo bem feio.
PHP код:
public OnPlayerText(playerid, text[])
{
static string[1000];
switch(Player[playerid][pAdmin])
{
case 1:
{
format(string, sizeof(string), "{FFFF00}( %s ) {E1EBFB}%s[%d]: {FFFFFF}%s", StaffInfo[Player[playerid][pAdmin]][NomeCargoStaff], GetPlayerNameEx(playerid), playerid, text);
SendClientMessageToAll(playerid, string);
SetPlayerChatBubble(playerid, StaffInfo[Player[playerid][pAdmin]][NomeCargoStaff], StaffInfo[Player[playerid][pAdmin]][CorCargoStaff], 10.0, 10000);
return 0;
}
case 2:
{
format(string, sizeof(string), "{00AA04}( %s ) {E1EBFB}%s[%d]: {FFFFFF}%s", StaffInfo[Player[playerid][pAdmin]][NomeCargoStaff], GetPlayerNameEx(playerid), playerid, text);
SendClientMessageToAll(playerid, string);
SetPlayerChatBubble(playerid, StaffInfo[Player[playerid][pAdmin]][NomeCargoStaff], StaffInfo[Player[playerid][pAdmin]][CorCargoStaff], 10.0, 10000);
return 0;
}
case 3:
{
format(string, sizeof(string), "{FF3333}( %s ) {E1EBFB}%s[%d]: {FFFFFF}%s", StaffInfo[Player[playerid][pAdmin]][NomeCargoStaff], GetPlayerNameEx(playerid), playerid, text);
SendClientMessageToAll(playerid, string);
SetPlayerChatBubble(playerid, StaffInfo[Player[playerid][pAdmin]][NomeCargoStaff], StaffInfo[Player[playerid][pAdmin]][CorCargoStaff], 10.0, 10000);
return 0;
}
case 4:
{
format(string, sizeof(string), "{6B7AFE}( %s ) {E1EBFB}%s[%d]: {FFFFFF}%s", StaffInfo[Player[playerid][pAdmin]][NomeCargoStaff], GetPlayerNameEx(playerid), playerid, text);
SendClientMessageToAll(playerid, string);
SetPlayerChatBubble(playerid, StaffInfo[Player[playerid][pAdmin]][NomeCargoStaff], StaffInfo[Player[playerid][pAdmin]][CorCargoStaff], 10.0, 10000);
return 0;
}
}
return 1;
}