08.11.2010, 12:48
Eu queria colocar um texto em cima do player quando ele ficar afk
Axo que chama 3DTextLabel
й isso
como eu faзo??
Axo que chama 3DTextLabel
й isso

como eu faзo??
SetPlayerChatBubble(playerid,"Texto", COR, DISTANCIA QUE OS OUTROS VERГO, TEMPO PARA EXPIRAR);
if(strcmp(cmd, "/afk", true) == 0)
{
new string[256];
SetPlayerHealth(playerid, 99999);
GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
format(string, sizeof(string), "[AVISO]%s Estб AFK (/afk)", PlayerName);
SendClientMessageToAll(0xF6F6F6AA string);
SetPlayerChatBubble(playerid,"AFK", 0xF6F6F6AA, X,Y,Z, 4000);//Й EM MILISEGUNDOS?
return 1;
}
if (strcmp("/afk", cmdtext, true, 10) == 0) { new Float:health; if(Afk[playerid]==0) { new Name[24]; new string22[50]; Afk[playerid]=1; Timer[playerid] = SetTimer("SendMessage",100,0); // SetPlayerVirtualWorld(playerid, 11); TogglePlayerControllable(playerid,0); GetPlayerName(playerid, Name, 24); format(string22, sizeof(string22), "%s estб afk", Name); SendClientMessageToAll(0x33CCFFAA, string22); SendClientMessage(playerid,0xFF0000AA, "Vocк estб no modo AFK, para sair digite /afk"); GetPlayerHealth(playerid, health); SetPlayerHealth(playerid, INFINITY); SetPlayerChatBubble(playerid,"AFK", 0xF6F6F6AA, 100.0, 4000);//Й EM MILISEGUNDOS? } else if(Afk[playerid]==1) { new Name[24]; new string11[50]; Afk[playerid]=0; Timer[playerid] = SetTimer("SendMessage",100,0); // SetPlayerVirtualWorld(playerid, 0); TogglePlayerControllable(playerid,1); GetPlayerName(playerid, Name, 24); format(string11, sizeof(string11), "%s voltou para o server", Name); SendClientMessageToAll(0x33CCFFAA, string11); SetPlayerHealth(playerid, health); SendClientMessage(playerid,0xFF0000AA, "Vocк voltou para o servidor."); } return 1; }
if (strcmp("/afk", cmdtext, true, 10) == 0)
{
new Float:health;
if(Afk[playerid]==0)
{
new Name[24];
new string22[50];
Afk[playerid]=1;
Timer[playerid] = SetTimer("SendMessage",100,0);
// SetPlayerVirtualWorld(playerid, 11);
TogglePlayerControllable(playerid,0);
GetPlayerName(playerid, Name, 24);
format(string22, sizeof(string22), "%s estб afk", Name);
SendClientMessageToAll(0x33CCFFAA, string22);
SendClientMessage(playerid,0xFF0000AA, "Vocк estб no modo AFK, para sair digite /afk");
GetPlayerHealth(playerid, health);
SetPlayerHealth(playerid, INFINITY);
SetPlayerChatBubble(playerid,"AFK", 0xF6F6F6AA, 100.0, 4000);//Й EM MILISEGUNDOS?
}
else if(Afk[playerid]==1)
{
new Name[24];
new string11[50];
Afk[playerid]=0;
Timer[playerid] = SetTimer("SendMessage",100,0);
// SetPlayerVirtualWorld(playerid, 0);
TogglePlayerControllable(playerid,1);
GetPlayerName(playerid, Name, 24);
format(string11, sizeof(string11), "%s voltou para o server", Name);
SendClientMessageToAll(0x33CCFFAA, string11);
SetPlayerHealth(playerid, 100);
SendClientMessage(playerid,0xFF0000AA, "Vocк voltou para o servidor.");
}
return 1;
}