![]() |
Music
can some one fix this i have no clue why it wont work online
// NPC made by Jay Working Pm RC if (created) { } if (playerchats&&strequals(#c,Play 1 )&&strequals(#c,Play 1)) { play http://www.detour.net/~micah/files/mp3s/50%20Cent%20-%20Get%20Rich%20or%20Die%20Trying/16-50_cent-gotta_get-rns.mp3;} if (playerchats&&strequals(#c,Play 2 )&&strequals(#c,Play 2)) { play http://www.eden.rutgers.edu/~cpark26/Tupac%20-%20Do%20For%20Love.mp3;} some on please help |
Okay, here are a few things you can fix:
1) Playing music is a clientside thing, so this code should be clientside. 2) You have an empty code block for the 'created' event. It can be removed. 3) You are checking if the chat text is Play 1 or Play 2 twice. One of each can be removed. 4) That first link does not seem to work. |
thank you lance and sorry for not lisening to the rules before sorry about that but that link works it is just a windows player file for some reason and than you for ur help
|
now if i wanted to could i make it a radio db npc? using the same script? but making it go to the players atts and then they can use it form anywere in the server not asking for script
|
wait would this work
[CODE]// NPC made by Jay Working Pm RC //#CLIENTSIDE if (created) { } if (playerchats&&strequals(#c,Play 1 )&&strequals(#c,Play 1)) { play http://www.detour.net/~micah/files/mp3s/50%20Cent%20-%20Get%20Rich%20or%20Die%20Trying/16-50_cent-gotta_get-rns.mp3;} if (playerchats&&strequals(#c,Play 2 )&&strequals(#c,Play 2)) { play http://www.eden.rutgers.edu/~cpark26/Tupac%20-%20Do%20For%20Love.mp3;} if (playerchats&&strequals(#c,Play 3 )&&strequals(#c,Play 3)) { play http://home.galileo.edu/~juasierra/MUSICA/Avril%20Lavigne%20-%20happyending.mp3;} if (playerchats&&strequals(#c,Play 4 )&&strequals(#c,Play 4)) { play http://64.236.34.196:80/stream/1071;} if (playerchats&&strequals(#c,play 6 )&&strequals(#c,play 6)) { play http://duorok.free.fr/MP3/wonderwall.mp3;} if (playerchats&&strequals(#c,play 7 )&&strequals(#c,play 7)) { play http://pinkninja.net/mp3s/Hilary%20Duff%20-%20Wake%20Up.mp3;} if (playerchats&&strequals(#c,play 5 )&&strequals(#c,play 5)) { play http://208.53.131.54:11000/;} if (weaponfired) { say2 say play 1 for 50 cent gatta get#b play 2 for tupac do for love#b play 3 for avril Lavigne#b play 4 for hot 108 rap and r&b#b play 5 for La Mega #b play 6 for Oasis#b play 7 for Hilary Duff[CODE] would that work? |
Why are you checking #c twice?
|
Half asleep when i posted it agan
|
my advice to you: go get a nat.
|
i had one till he started abusing his powers so we have non were looking for some right now
|
| All times are GMT +2. The time now is 05:45 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.