06.07.2015, 19:56
Well, I want to do in my script like: if a player is donating player so i want There should "Donating player" on his head. (upto name tag).
Well, How can i?
Well, How can i?
new Text3D:VIPtag[MAX_PLAYERS]; //somewhere in the script //under onplayerspawn if(PlayerAcc[playerid][Vip] >= 1)/// replace this code with your { new Text3D:VIPtag = Create3DTextLabel("Donating player", COLOR_ORANGE, 30.0, 40.0, 50.0, 40.0, 0); Attach3DTextLabelToPlayer(VIPtag, playerid, 0.0, 0.0, 0.7); } |
if(pData[playerid][pDonator] == 1)
{
new Text3D:label = Create3DTextLabel("Donating Player", RED, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.7);
return 1;
}
Delete3DTextLabel(Label[playerid]); |
new Float: posX, Float: posY, Float: posZ;
GetPlayerPos (playerid, posX, posY, posZ);
new Text3D:label = Create3DTextLabel("Donating Player", RED, posX, posY, posZ + 0.5, 40.0, 0);
Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.7);
new Text3D:donatorText[MAX_PLAYERS];
<..> when a donator connects
new Float: posX, Float: posY, Float: posZ;
GetPlayerPos (playerid, posX, posY, posZ);
donatorText [playerid] = Create3DTextLabel ("Donating Player", RED, posX, posY, posZ + 0.5, 40.0, 0);
Attach3DTextLabelToPlayer (donatorText [playerid], playerid, 0.0, 0.0, 0.7);
<...> when a donator disconnects
Delete3DTextLabel (donatorText [playerid]);