[Help] Interiors - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [Help] Interiors (
/showthread.php?tid=334563)
[Help] Interiors -
nilanjay - 15.04.2012
HI guys, I created a /club command where player get's tp to a club but idk what is wrong. When I use that cmd then nothing happens and I only see sky.
Codes
pawn Код:
CMD:club(playerid, params[])
{
new string[128];
format(string, sizeof(string), "[SYSTEM]:You have been teleported to the bar.");
SendClientMessage(playerid, -1, string);
SetPlayerInterior(playerid, 17);
GameTextForPlayer(playerid, "Bar", 0, 6);
return 1;
}
Re: [Help] Interiors -
Cjgogo - 15.04.2012
You forgot SetPlayerPos to bar coordinates.
Re: [Help] Interiors -
nilanjay - 15.04.2012
Oh thx
Re: [Help] Interiors -
nilanjay - 15.04.2012
ahh can u give me an example of audio stream too?
Like I want to play a music when the player gots tp in that interior
Re: [Help] Interiors -
Cjgogo - 15.04.2012
pawn Код:
CMD:club(playerid, params[])
{
new string[128];
format(string, sizeof(string), "[SYSTEM]:You have been teleported to the bar.");
SendClientMessage(playerid, -1, string);
SetPlayerPos(playerid,BAR COORDS);
SetPlayerInterior(playerid, 17);
GameTextForPlayer(playerid, "Bar", 0, 6);
PlayAudioStreamForPlayer(playerid,URL);
return 1;
}
Re: [Help] Interiors -
nilanjay - 15.04.2012
I got an error while I did this
Error
Код:
C:\Users\PART\Desktop\Desktop\Games+ Game Stuffs\0.3d\gamemodes\test.pwn(140 -- 141) : error 029: invalid expression, assumed zero
COdes
pawn Код:
CMD:club(playerid, params[])
{
new string[128];
format(string, sizeof(string), "[SYSTEM]:You have been teleported to the bar.");
SendClientMessage(playerid, -1, string);
SetPlayerInterior(playerid, 17);
SetPlayerPos(playerid, 493.390991,-22.722799,1000.67968);
GameTextForPlayer(playerid, "Bar", 0, 6);
PlayAudioStreamForPlayer(playerid, [url]http://www.mediafire.com/?pcrzhes6pw3y4kq);[/url]
return 1;
}
Re: [Help] Interiors -
Cjgogo - 15.04.2012
It must be an mp3 URL
Re: [Help] Interiors -
nilanjay - 15.04.2012
how can I get one mp3 url now?
Re: [Help] Interiors -
newbienoob - 15.04.2012
1)Choose a video on ******* that contains your song.
2)Go to
http://www.*******-mp3.org/ and convert your video(song) to mp3 file
3)Click on "Download" and save it
4)Now you will need a site which will host your mp3 files,(I used
http://kiwi6.com/ )
5)Click on "browse",choose your song and click on "Start Upload" and then click on "Saved:"
6)Copy the Direct Hotlink
Re: [Help] Interiors -
Cjgogo - 15.04.2012
Well,here's an example,usually
www.emp3world.com provides you with MP3 URLs:
http://javamax.free.fr/sonorisation%...0-%20Shrek.mp3-example