26.01.2013, 22:13
I'd like to have a certain textdraw only show at 2 locations on my server. However, it works at one location, but not the other. It doesn't show up at all on the second one. I'm curious of why, or maybe someone could help figure this out.
This is the point I'd like it to show at:
pawn Код:
if(PlayerToPoint(50.0, i, 1400.3022,-3122.9741,9.6987) || PlayerToPoint(50.0, i, -2636.56,1403.46,906.46))
{
format(string, sizeof(string), "Tickets: %d", Tickets[i]);
TextDrawSetString(TicketText[i], string);
TextDrawShowForPlayer(i, TicketText[i]);
TextDrawShowForPlayer(i, TicketText1[i]);
if(PlayerInfo[i][pAdmin] < 1) SetPlayerArmedWeapon(i, 0);
}
if(!PlayerToPoint(50.0, i, 1400.3022,-3122.9741,9.6987) || !PlayerToPoint(50.0, i, -2636.56,1403.46,906.46))
{
TextDrawHideForPlayer(i, TicketText[i]);
TextDrawHideForPlayer(i, TicketText1[i]);
}
if(!PlayerToPoint(160.0, i, 1400.3022,-3122.9741,9.6987))
{
if(ListeningCarnival[i] != 0)
{
ListeningCarnival[i] = 0;
StopAudioStreamForPlayer(i);
}
}
pawn Код:
PlayerToPoint(50.0, i, -2636.56,1403.46,906.46