Textdraws - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Textdraws (
/showthread.php?tid=147035)
Textdraws -
Bomber - 10.05.2010
I have this code
pawn Код:
if (strcmp("/hidetext", cmdtext, true, 10) == 0)
{
for(new i = 0; i < MAX_PLAYERS; i++)
TextDrawHideForPlayer(i, Announcements); SendClientMessage(playerid, COLOR_GOLD, "Info textdraws are now hiden - use /showtext to enable textdraws");
return 1;
}
But when anybody uses this command, then it will hide this textdraws for every player.
How can i do that it hides only for that player who did /hidetext ?
Re: Textdraws -
shady91 - 10.05.2010
pawn Код:
if (strcmp("/hidetext", cmdtext, true, 10) == 0)
{
TextDrawHideForPlayer(playerid, Announcements); SendClientMessage(playerid, COLOR_GOLD, "Info textdraws are now hiden - use /showtext to enable textdraws");
return 1;
}
Re: Textdraws -
Jochemd - 10.05.2010
Simply change the 'i' from TextDrawHideForPlayer to 'playerid'
Re: Textdraws -
Bomber - 10.05.2010
Quote:
|
Originally Posted by Jochemd
Simply change the 'i' from TextDrawHideForPlayer to 'playerid'
|
Thanks, fixed it.