[Help] Interiors
#1

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;
}
Reply
#2

You forgot SetPlayerPos to bar coordinates.
Reply
#3

Oh thx
Reply
#4

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
Reply
#5

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;
}
Reply
#6

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;
}
Reply
#7

It must be an mp3 URL
Reply
#8

how can I get one mp3 url now?
Reply
#9

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
Reply
#10

Well,here's an example,usually www.emp3world.com provides you with MP3 URLs:
http://javamax.free.fr/sonorisation%...0-%20Shrek.mp3-example
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)