18.10.2012, 14:18
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; }