Texdraw hide problem +rep -
Beljulji - 18.10.2012
i have a texdraw that create when player join like /aa but the problem is when someone join that area texdraw wont show for me, only will work when i join /aa and timer to hide is 9 sec so when someon joins i that 9 seconds texdraw shows but when texdraw hides for me and someone type /aa command texdraw wont show for me what i need to do?
Код:
if (strcmp(cmdtext,"/abondedairport", true ) == 0 || strcmp(cmdtext,"/aa",true) == 0)
{
if(IsAtDM[playerid] == 1) return GameTextForPlayer(playerid, "~r~/~w~exitdm", 2000, 5);
if(IsAtDM[playerid] == 2) return GameTextForPlayer(playerid, "~r~/~w~exitdm", 2000, 5);
if(IsAtDM[playerid] == 3) return GameTextForPlayer(playerid, "~r~/~w~exitdm", 2000, 5);
if(IsAtDM[playerid] == 4) return GameTextForPlayer(playerid, "~r~/~w~exitdm", 2000, 5);
if(IsAtDM[playerid] == 5) return GameTextForPlayer(playerid, "~r~/~w~exitdm", 2000, 5);
if(IsAtDM[playerid] == 6) return GameTextForPlayer(playerid, "~r~/~w~exitdm", 2000, 5);
if(IsAtDM[playerid] == 7) return GameTextForPlayer(playerid, "~r~/~w~exitdm", 2000, 5);
if(IsAtDM[playerid] == 8) return GameTextForPlayer(playerid, "~r~/~w~exitdm", 2000, 5);
SetPlayerPos(playerid, 400.9612,2458.2361,16.5000);
new str[128],name[24];
GetPlayerName(playerid,name,24);
format(str,sizeof(str),"~r~%s ~w~has teleported to /aa",name);
TextDrawSetString(teleporttext,str);
TextDrawShowForPlayer(playerid, teleporttext);
SendClientMessage(playerid,pink,"Welcome To Abandoned Airport");
SetTimerEx("HIDE_TELEPORT_TD", 9000, 0, "d", playerid);
return 1;
}
Re: Texdraw hide problem +rep -
Roel - 18.10.2012
You have to edit the teleporttext to a player variable so
new Text:teleporttext[MAX_PLAYERS];
And use teleporttext[playerid] instead of teleporttext.
Also at the location where you create this textdraw you should move it to onplayerconnect, and also change all the teleporttext to teleporttext[playerid]
Re: Texdraw hide problem +rep -
Beljulji - 18.10.2012
hmmm can you help me with that i cant now cuz im so tired and my brain gonna explode LOL can you give me an example pls?
Re: Texdraw hide problem +rep -
Abhishek. - 18.10.2012
because of your this line
Код:
TextDrawShowForPlayer(playerid, teleporttext);
it only shows to one player try using
Код:
TextDrawShowForAll(teleporttext);
Re: Texdraw hide problem +rep -
Roel - 18.10.2012
he is right, I was wrong, I was thinking in a different way, the wrong way lol
Re: Texdraw hide problem +rep -
Beljulji - 18.10.2012
Quote:
Originally Posted by [bot]fatninja
because of your this line
Код:
TextDrawShowForPlayer(playerid, teleporttext);
it only shows to one player try using
Код:
TextDrawShowForAll(teleporttext);
|
oh S**T i forgot about texdrawshowforall ty man
Re: Texdraw hide problem +rep -
Abhishek. - 18.10.2012
well i was reading it again and again
thx for the complement
and to the topic maker plz edit your HIDE_TELEPORT_TD to hide textdraw for all players.