[Ajuda] TAG [VIP] E [ADM]
#1

Alguem poderia me passar o codigo da tag [VIP] E [ADM] QUANDO FALA NO XAT APAREЗE A TAG NA FRENTE NICK EX:
Guuh[VIP] eae seus puto
Guuh[ADM] Cole galeria

Bom a gamemode eh de caminhonheiro e tem 5 leveis alguem me passa o codigo que devo usar vlw
Reply
#2

Cebolinha, manda a variavel de admin
Reply
#3

Para que criar dois tуpicos amigo?
https://sampforum.blast.hk/showthread.php?tid=592797
Reply
#4

Quote:
Originally Posted by DjonathaTM
Посмотреть сообщение
Cebolinha, manda a variavel de admin
cM ASSIM VARIAVEL ??
Reply
#5

Quote:
Originally Posted by lCebolinha
Посмотреть сообщение
cM ASSIM VARIAVEL ??
https://sampforum.blast.hk/showthread.php?tid=235924
Reply
#6

Cara, a sua variavel
'-'
Tipo
Pinfo[playerid][LevelADMIN]
Vocк nгo sabe nada sobre variбveis?
Reply
#7

Quote:
Originally Posted by FStralioti
Посмотреть сообщение
ahh deixa disisto tendendo nd cm nd bugando minha met
Reply
#8

Quote:
Originally Posted by DjonathaTM
Посмотреть сообщение
Cara, a sua variavel
'-'
Tipo
Pinfo[playerid][LevelADMIN]
Vocк nгo sabe nada sobre variбveis?
eh issto ??
if(PlayerInfo[playerid][NoEvento] == 0)
{
new Float, Float:y, Float:z, Float:rot, vID, pdName[24];
new engine,lights,alarm,doors,bonnet,boot,objective;
GetPlayerPos(playerid, x, y, z);
GetPlayerFacingAngle(playerid, rot);
vID = Vehicle_Create(vehiclemodel, x, y, z, rot, color1, color2, 600);
PutPlayerInVehicle(playerid, vID, 0);
// Turn on the engine and lights
GetVehicleParamsEx(vID, engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(vID, 1, 1, alarm, doors, bonnet, boot, objective);
// Store the player's current location and interior-id, otherwise anti-airbreak hack code could kick you
GetPlayerPos(playerid, APlayerData[playerid][PreviousX], APlayerData[playerid][PreviousY], APlayerData[playerid][PreviousZ]);
APlayerData[playerid][PreviousInt] = GetPlayerInterior(playerid);
// Also, after spawning a vehicle, reset FirstCar (so next time, the list starts from the start)
APlayerData[playerid][DialogCarFirstCar] = 0;
GetPlayerName(playerid, pdName, 24);
if(APlayerData[playerid][PlayerLevel] == 1)
{
format(Alla, 128, "{FFD700}[VIP] O jogador {FFFFFF}%s {FFD700}criou um(a) {FFFFFF}%s{FFD700}.", pdName, Vehicles[GetVehicleModel(GetPlayerVehicleID(playerid))-400]);
SendClientMessageToAll(-1, Alla);
}
if(APlayerData[playerid][PlayerLevel] >= 2)
{
format(Alla, 128, "{a9c4e4}O Administrador {FFFFFF}%s {a9c4e4}criou um(a) {FFFFFF}%s{a9c4e4}.", pdName, Vehicles[GetVehicleModel(GetPlayerVehicleID(playerid))-400]);
SendClientMessageToAll(-1, Alla);
}
}
return 1;
}
Reply
#9

Criou dois tуpicos sem necessidade, mas enfim. Vou precisar de uma coisa, pra quem й vip ta como?
Ex.: APlayerData[playerid][VIP]

PHP код:
public OnPlayerText(playeridtext[])
{
       if(
APlayerData[playerid][PlayerLevel] > 0)
       {
              new 
string[250], playername[24];
              
GetPlayerName(playeridplayernamesizeof(playername));
              
format(stringsizeof(string), "%s{FFFFFF}[ADMIN]: %s"playernametext[1]);
              
SendClientMessageToAll(GetPlayerColor(playerid), string);
              return 
1;
       }
       return 
1;



No lugar do {FFFFFF} vocк coloca a cor que vocк quer que apareзa o [ADMIN], se vocк trocar, irб trocar o [ADMIN] e o restante da mensagem, ou seja, vocк terб que colocar {FFFFFF} logo apуs [ADMIN], exemplo:

"%s{AFAFAF}[ADMIN]{FFFFFF}: %s"

O [ADMIN] irб sair cinza e a mensagem sairб branca, o nome sairб com a cor do nome do player.
Reply
#10

PHP код:
OnPlayerText
if(PlayerDados[player][Vip] == 1)
{
new 
vip[128];
format(vip,sizeof(vip), "[VIP]: %s %s",Nome(playerid), text);
SendClientMessageToAll(GetPlayerColor(playerid), vip);
}
else
{
//SE O PLAYER NГO FOR VIP
format(vip,sizeof(vip), "<%d> %s: %s",playeridNome(playerid), text);
SendClientMessageToAll(GetPlayerColor(playerid), vip);

Acho que й assim
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)