Skip to content
View in the app

A better way to browse. Learn more.

GTAGames.nl - De Nederlandse Grand Theft Auto Community!

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Help met muziek please :O

Ik heb in mijn server een nieuw gebouw op de strip neergezet en dat is dan een club.

Nou wil ik dat als je in die club loopt(je loopt rechtstreeks naar binnen dus geen teleport ofzo) je muziek krijgt.

Hoe moet ik dat doen ? En als je dan uit de omgeving gaat van de club dat de muziek weer stopt.

Hopelijk snappen jullie wat ik bedoel en kunnen jullie mij helpen.

Alvast bedankt voor degene die me willen helpen.

[D)opey

Featured Replies

Dat kan je ook met IsPlayerInArea doen, zoals die functie die ik je al eerder had gegeven. Gewoon een Area maken voor het gebied waar je muziek wilt afspelen. Hier heb je een lijstje voor alle deuntjes, of als je liever de deuntjes direct luistert klik je hier. Houd er rekening mee, dat je een START deuntje gebruikt als je in de zone bent, en het STOP deuntje gebruikt om de muziek te stoppen. Anders gaat het alsmaar door ;)

EDIT: Of, IsPlayerToPoint. Dat kan je ook gebruiken. Kijken of een speler in een bepaalde radius is van een punt. Plaats het bovenaan je script:

PlayerToPoint(Float:radius, playerid, Float:X, Float:Y, Float:Z)
{
new Float:oldpos[3], Float:temppos[3];
GetPlayerPos(playerid, oldpos[0], oldpos[1], oldpos[2]);
temppos[0] = (oldpos[0] -X);
temppos[1] = (oldpos[1] -Y);
temppos[2] = (oldpos[2] -Z);
if(((temppos[0] < radius) && (temppos[0] > -radius)) && ((temppos[1] < radius) && (temppos[1] > -radius)) && ((temppos[2] < radius) && (temppos[2] > -radius)))
{
	return true;
}
return false;
}

Hier ook nog een simpel voorbeeld van het gebruik ervan ;)

Edited by Remi-X

Bedankt mijn gates gaan nu automatich.

Vraagje:

if(PlayerToPoint(10.0,

is de 10.0 de afstand?

als ik de op 20.0 zet gaat de poort dan ook open als ik iets verder weg sta?

Bedankt mijn gates gaan nu automatich.

Vraagje:

if(PlayerToPoint(10.0,

is de 10.0 de afstand?

als ik de op 20.0 zet gaat de poort dan ook open als ik iets verder weg sta?

Ja zo gaan ze van verder af open

Oke, het werkt, maar alleen als ik ze allebei op hetzelfde zet.

Als ik ze op andere waardes zet de eerste 10 en de 2e 20 dan gaan ze haperen open - dicht. open - dicht, terwijl hij wel eerder dicht mag als je er eenmaal door bent.

Edited by mosweg

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.