hook OnPlayerText(playerid,text[])
{
new Celulas[128];
if(calado[playerid] == true)
{
SendClientMessage(playerid,lk,"Vocк foi calado por um membro da staff, sу podera falar apуs ser descalado !");
return 0;
}
//TAG STAFF
if(PlayerInfo[playerid][pAdmin] >= 0){
format(Celulas, sizeof(Celulas), "%s[%d]%s {FFFFFF}: %s", NomePlayer(playerid),playerid, CargoFala(playerid), text);
ProxDetector(20.0, playerid, Celulas, GetPlayerColor(playerid), GetPlayerColor(playerid), GetPlayerColor(playerid), GetPlayerColor(playerid), GetPlayerColor(playerid));
return false;
}
return 0;
}
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;
}
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;
}
PHP Code:
|
if(IsPlayerVIP(playerid)) Aqui vocк da preferкncia pra vip ou staff, ou seja, caso o staff seja VIP, primeiro apareзa a tag vip
{
}
else if(IsPlayerStaff(playerid))
{
}
else // Chat Normal, para jogadores que nгo sгo staffs ou vips
{
}
era sу usar else if
PHP Code:
|