[Ajuda] Create3DTextLabel Apos Ganhar adm
#1

Bem Galera Queria Ajuda de Vocкs e por que eu queria que quando da-se o adm a algem Fica-se o nome Em cima da Cabeзa dele Dizendo "Staff" de Cor Amarelo para definir se o player e adm ou player normal e quero a ajuda de vocкs
Bem eu tentei por mais quamdo eu seto nao vai '-'

/setadmin

pawn Код:
if(strcmp(cmd,"/setadmin", true)==0){
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
if(IsPlayerAdmin(playerid)){
new tmp[256];
new plid, skin;
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)){
SendClientMessage(playerid, Vermelho, "(ERRO) Digite: /setadmin [id] [Level]");
return 1;
}
plid = strval(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, Vermelho, "(ERRO) Digite: /setadmin [id] [Level]");
return 1;
}
skin = strval(tmp);
if(skin>=6){
SendClientMessage(playerid, Vermelho, "(ERRO) O level Permitido para ADM e 0 a 5!");
return 1;
}
new pname[MAX_PLAYER_NAME];
GetPlayerName(plid, pname, MAX_PLAYER_NAME);
if(IsPlayerConnected(plid)){
if(skin>=1){
MeuText = Create3DTextLabel("Staff", 0xFFFF00AA, 30.0, 40.0, 50.0, 100.0, 0);
Attach3DTextLabelToPlayer(MeuText, playerid, 0.0, 0.0, 0.3);
pAdmin[plid] = skin;
SpawnPlayer(plid);
SendClientMessageToAll(tcadm, string);
}
if(skin == 0){
pAdmin[plid] = 0;
SpawnPlayer(plid);
Delete3DTextLabel(MeuText);
SendClientMessageToAll(tcadm, string);
}
return 1;
}else{
SendClientMessage(playerid, Vermelho, "(ERRO) Jogador nгo conectado.");
return 1;
}
}
}
Reply
#2

'-' aki um link que vai te ajuda mt estude as funзхes analise i crie seu codigo
https://sampwiki.blast.hk/wiki/Attach3DTextLabelToPlayer
Reply
#3

Quote:
Originally Posted by R3S1D3NT1
Посмотреть сообщение
'-' aki um link que vai te ajuda mt estude as funзхes analise i crie seu codigo
https://sampwiki.blast.hk/wiki/Attach3DTextLabelToPlayer
Cara ja Entendo quase todas as funзoes de pawn.
quero saber um exemplo ou um Mini Tutorial
Reply
#4

Mais Algem
Reply
#5

Mais Alegem?І
Reply
#6

SetPlayerChatBubble.
Reply
#7

Cara nao e isso
Reply
#8

Claro que й amigo.
O nome em cima da cabeзa dele й SetPlayerChatBubble.
Estuda e vocк vai ver que й.
Coloca na sua cabecinha: "TENHO QUE ESTUDAR E PARAR DE PEDIR TUDO PRONTO."
Reply
#9

pawn Код:
SetPlayerChatBubble(playerid, "TEXTO ENCIMA DA CABECINHA DELE", 0xFF0000FF, 100.0, cellmax);
cellmax й para o text nunca expirar. Isto equivale a 2147483648 ms ou 21474836 segundos na cabeзa do jogador. Й suficiente, sгo umas 6 mil horas.
Reply
#10

Quote:
Originally Posted by ipsBruno
Посмотреть сообщение
pawn Код:
SetPlayerChatBubble(playerid, "TEXTO ENCIMA DA CABECINHA DELE", 0xFF0000FF, 100.0, cellmax);
cellmax й para o text nunca expirar. Isto equivale a 2147483648 ms ou 21474836 segundos na cabeзa do jogador. Й suficiente, sгo umas 6 mil horas.
Bruno, se ele relogar no jogo, irб comeзar contar novamente correto?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)