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.

Connect muziekje bij kiezen van class

Hoi,

Bij de meeste servers hoor je een muziekje als je een spawn class gaat kiezen. (De muziekjes van de Scholen). Ik ben ook bezig een simpele server te scripten. Weet iemand hoe ik zo'n muziekje kan instellen? Ik heb overal al gezocht.

Groet, Jochemd

Edited by Jochemd

Featured Replies

KOMT ER AAN HOOR

w8 ff 5sec

edit:

Geluid starten:

PlayerPlaySound(playerid, 1082, X, Y, Z); // bij OnPlayerRequestClass

Geluid stoppen:

PlayerPlaySound(playerid, 1183+ 1,X,Y,Z); // bij OnPlayerSpawn

Edited by Crusher!!

  • Author

Moet ik deze allebei toevoegen bij OnPlayerConnect?

ER achter staat waar je ze moet toevoegen

// by .....

  • Author
C:\Users\Jochemd\Desktop\samp-server\gamemodes\Freeroom.pwn(107) : error 017: undefined symbol "X"

C:\Users\Jochemd\Desktop\samp-server\gamemodes\Freeroom.pwn(129) : error 017: undefined symbol "X"

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

2 Errors.

Weet je ook hoe ik dit kan oplossen? Niet met #define dacht ik, want dan slaat hij vast...

Edited by Jochemd

......

X, Y, Z

Betekend de cordinaten

Dus je moet daar getallen invullen.

Als je een spawnpositie hebt of bij OnPlayerConnect dan kun je die positie invullen,.

En anders

new Float:x;

new Float:y;

new Float:z;

GetPlayerPos(playerid,x,y,z);// bij OnPlayerRequestClass

PlayerPlaySound(playerid, 1082, x, y, z); // bij OnPlayerRequestClass

Dan pakt hij eerst je positie en daarna speelt hij het op die positie,

  • Author
......

X, Y, Z

Betekend de cordinaten

Dus je moet daar getallen invullen.

Als je een spawnpositie hebt of bij OnPlayerConnect dan kun je die positie invullen,.

En anders

new Float:x;

new Float:y;

new Float:z;

GetPlayerPos(playerid,x,y,z);// bij OnPlayerRequestClass

PlayerPlaySound(playerid, 1082, x, y, z); // bij OnPlayerRequestClass

Dan pakt hij eerst je positie en daarna speelt hij het op die positie,

Het wil maar niet lukken :( Is hier geen filterscriptje voor?

Zal ik even maken! wacht even.

10min :puh:

EDIT

7RGV.jpg

pXsZ.jpg

Edited by Crusher!!

Yo dankjewel man die had ik ook net nodig :tu:

Sorry ben beetje nieuw met dit, Maar hoe voeg je hem toe aan mij GM..? ^^

Edited by ScarfaceJR

Als het goed is heb je voor PlayerPlaySound geen coördinaten nodig (gewoon 0 invullen bij x, y, z). Je hoort de sound sowieso, waar je je ook bevindt.

Tevens kan je dezelfde coördinaten gebruiken die je hebt staan bij SetPlayerPos indien de sound toch niet werkt met 0-0-0.

  • Author
Als het goed is heb je voor PlayerPlaySound geen coördinaten nodig (gewoon 0 invullen bij x, y, z). Je hoort de sound sowieso, waar je je ook bevindt.

Tevens kan je dezelfde coördinaten gebruiken die je hebt staan bij SetPlayerPos indien de sound toch niet werkt met 0-0-0.

Bedankt, maar vreemd genoeg werkt het nog steeds niet. Ik heb hem toch toegevoegd aa server.cfg, compiled etc etc. geen errors bij het laden... Toch speelt het geen muziek af. Zou het aan mijn server liggen?

Je moet gewoon die regel adden in je Pawno script op de aangegeven plaatsen, dan hoort het te werken ( als je compiled )

Wat moet jij dan in je server.cfg

  • Author

Oplosthee, het filterscript?

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.