Quote:
Originally Posted by NWDMadara
PHP Code:
hook OnPlayerText(playerid, text[])
{
if(IsPlayerVIP(playerid))
{
format(Str2, sizeof(Str2), "/Vips/Users/%s.ini", PlayerName(playerid));
//format ( Str2, sizeof Str2, VIP_USERS, PlayerName);
new cor = DOF2_GetInt(Str2, "CorVIP");
format(Str2, sizeof(Str2), "%s: {FFFFFF}[%d] [{%s}VIP{FFFFFF}] %s", PlayerName(playerid), playerid, cor == 1 ? ("FF00FF") : cor == 2 ? ("FFFF00") : cor == 3 ? ("FFA500") : cor == 4 ? ("00FF00") : cor == 5 ? ("00FFFF") : cor == 6 ? ("0000FF") : cor == 7 ? ("B5B5B5") : cor == 8 ? ("FF0000") : ("FFFFFF"), text);
SendClientMessageToAll(GetPlayerColor(playerid), Str2);
return 0;
}
return 1;
}
Pela segunda vez: A public OnPlayerText deve retornar a 0... Altere o ultimo return
|
Mesmo alterando o return o problema ainda nгo й esse, o chat continua multiplicado ...