Problem WIth Donator Text
#1

hello someone can help me i have a problem the problem is in the donator text i already wrote script like this

Quote:

if(PlayerInfo[playerid][VIP] >= 1)
{
VIPLabel[playerid] = Create3DTextLabel("DONATOR", 0xFC3A69AA, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(VIPLabel[playerid], playerid, 0, 0, 0.3);
}
return 1;
//--------------------

but it's not working i mean it shows to all donators not for all players

please help

sorry for my bad english
Reply
#2

you should use this code after setting the player name. This code will show the name to all players.
Quote:

foreach(Player, i) {
if(IsPlayerConnectEx(i) && i != playerid) {
ShowPlayerNameTagForPlayer(i, playerid, 1);
}
}

Where 1 is for show and 0 for hide the tag.
Reply
#3

thanks it's working
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)