Problem WIth Donator Text - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Problem WIth Donator Text (
/showthread.php?tid=534326)
Problem WIth Donator Text -
semara123 - 29.08.2014
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
Re: Problem WIth Donator Text -
Fred1993 - 29.08.2014
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.
Re: Problem WIth Donator Text -
semara123 - 29.08.2014
thanks it's working