Jump to content

Question

5 answers to this question

Recommended Posts

Posted

NexT." post="125879" timestamp="1352655496"]

foloseste PlayerToPoint

L-ai rezolvat, a inteles tot :))

Foloseste intr-un timer, sau la OnPlayerUpdate:

[pawn]

if ( IsPlayerInRangeOfPoint( playerid, 2421.4243,-1219.3868,25.5528 ) )

{

  PlayAudiStreamForPlayer( playerid, "URL" );

  //others

}

[/pawn]

Fara reclama in semnatura!

Posted

new PlayedRadioInZone[MAX_PLAYERS];

OnPlayerConnect: PlayedRadioInZone[playerid] = 0;

O poti pune la OnPlayerUpdate:

if ( IsPlayerInRangeOfPoint( playerid, 3.0, 2421.4243, -1219.3868, 25.5528 ) &&  PlayedRadioInZone[playerid] == 0 )
{
	PlayAudioStreamForPlayer(playerid, " URL ", 2421.4243, -1219.3868, 25.5528, Distance, 1);
	PlayedRadioInZone[playerid] = 1;
} else { PlayedRadioInZone[playerid] = 0; }

i0418xcttya707ofg.jpg

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.