When a player connect music
#1

Hey can any one show me how to do when a player connect to the server it will play this " http://k002.kiwi6.com/hotlink/d6x42m65a0/paradise.mp3 "


And when he login so it will stop
Reply
#2

Ok in onplayerconnect
Quote:

public OnPlayerConnect(playerid)
{
PlayAudioStreamForPlayer(playerid,"http://k002.kiwi6.com/hotlink/d6x42m65a0/paradise.mp3");
return 1;
}

add it on player spawn
Quote:

public OnPlayerSpawn(playerid)
{
StopAudioStreamForPlayer(playerid);
return 1;
}

Reply
#3

Код:
PlayAudioStreamForPlayer
https://sampwiki.blast.hk/wiki/PlayAudioStreamForPlayer

on OnPlayerConnect
Reply
#4

Quote:
Originally Posted by gurmani11
Посмотреть сообщение
Ok in onplayerconnect

add it on player spawn
I did this compiled and the Pawn is just keep crashing.
Reply
#5

well you might typing
Quote:

return 1;
}

2 times in onplayerconnect and onplayerspawn
Reply
#6

Okay ^^ Works but when i connect

I connect as CJ and on the sky cant move
Reply
#7

you need to show the code
Reply
#8

Quote:
Originally Posted by gurmani11
Посмотреть сообщение
you need to show the code
Код:
public OnPlayerConnect(playerid)
{
	 {
	PlayAudioStreamForPlayer(playerid,"http://k002.kiwi6.com/hotlink/d6x42m65a0/paradise.mp3");
	return 1;
	}



public OnPlayerSpawn(playerid)
{

{
	StopAudioStreamForPlayer(playerid);
	return 1;
}
Reply
#9

i was talking about class selection.....
Quote:

public OnPlayerConnect(playerid)
{
PlayAudioStreamForPlayer(playerid,"http://k002.kiwi6.com/hotlink/d6x42m65a0/paradise.mp3");
return 1;
}
public OnPlayerSpawn(playerid)
{
StopAudioStreamForPlayer(playerid);
return 1;
}

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)