Create3DTextLabel Apos Ganhar adm -
.:LucasxD:. - 27.07.2012
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;
}
}
}
Re: Create3DTextLabel Apos Ganhar adm -
R3S1D3NT1 - 27.07.2012
'-' aki um link que vai te ajuda mt estude as funзхes analise i crie seu codigo
https://sampwiki.blast.hk/wiki/Attach3DTextLabelToPlayer
Re: Create3DTextLabel Apos Ganhar adm -
.:LucasxD:. - 27.07.2012
Quote:
Originally Posted by R3S1D3NT1
|
Cara ja Entendo quase todas as funзoes de pawn.
quero saber um exemplo ou um Mini Tutorial
Re: Create3DTextLabel Apos Ganhar adm -
.:LucasxD:. - 27.07.2012
Mais Algem
Re: Create3DTextLabel Apos Ganhar adm -
.:LucasxD:. - 27.07.2012
Mais Alegem?І
Re: Create3DTextLabel Apos Ganhar adm -
Pedro_BML - 27.07.2012
SetPlayerChatBubble.
Re: Create3DTextLabel Apos Ganhar adm -
.:LucasxD:. - 28.07.2012
Cara nao e isso
Re: Create3DTextLabel Apos Ganhar adm -
Pedro_BML - 28.07.2012
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."
Re: Create3DTextLabel Apos Ganhar adm -
ipsBruno - 28.07.2012
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.
Re: Create3DTextLabel Apos Ganhar adm -
.FuneraL. - 28.07.2012
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?