Fiz um code ai pro meu rp... Sу QUE... Ele deveria criar um Texto para ficar acima da cabeзa do jogador, mais nгo funciona... '-'
pawn Код:
new cartaofbi[MAX_PLAYER_NAME];
if(strcmp(cmd,"/darcartao", true) == 0)
{
if(PlayerInfo[playerid][pLeader] == 3 || PlayerInfo[playerid][pMember] == 3)
{
tmp = strtok(cmdtext, idx);
new plid;
plid = strval(tmp);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_YELLOW2, "Uso correto: /darcartao [id]");
return 1;
}
cartaofbi[playerid] = 1;
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, sizeof(pName));
new Name[MAX_PLAYER_NAME];
GetPlayerName(plid, Name, sizeof(Name));
format(string, sizeof(string), "..:%s deu um cartгo de visitante para %s:..",pName, Name);
SendRadioMessage(3,TEAM_BLUE_COLOR,string);
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X,Y,Z);
Create3DTextLabel("Visitante",TEAM_BLUE_COLOR,X,Y,Z,25.0,0,0);
} else {
SendClientMessage(playerid, COLOR_RED, "Vocк nгo pode usar esse comando"); }
return 1;
}
pawn Код:
new Text3D:cartao[MAX_PLAYERS];
cartao[playerid]=Create3DTextLabel("Visitante",TEAM_BLUE_COLOR,X,Y,Z,25.0,0,0);
Attach3DTextLabelToPlayer(cartao[playerid],playerid,0.0,0.0,0.7);