Posts: 53
Threads: 17
Joined: Sep 2012
Reputation:
0
Hi guys i want a class selection music i got this
public OnPlayerConnect(playerid)
{
if(IsPlayerNPC(playerid)) return 1;
PlayAudioStreamForPlayer(playerid, "http://www.fileden.com/files/2012/9/26/3351322/Hiphop%20Instrumentals%20-%20rap%20freestyle%20beats.mp3");
new string[128];
new pname[24];
Posts: 53
Threads: 17
Joined: Sep 2012
Reputation:
0
I gona test if it works you got ++rep
Posts: 867
Threads: 27
Joined: Aug 2012
Reputation:
0
make sure that your Radio Volume is full
Posts: 53
Threads: 17
Joined: Sep 2012
Reputation:
0
Sow this needs under player spawn
{
StopAudioStreamForPlayer(playerid);//stop it
return 1;
}
Posts: 53
Threads: 17
Joined: Sep 2012
Reputation:
0
Pawno dont works if i press run
Posts: 430
Threads: 75
Joined: May 2012
Reputation:
0
Lol Post your codes and where did u put your codes
Posts: 53
Threads: 17
Joined: Sep 2012
Reputation:
0
public OnPlayerRequestClass(playerid, classid)
{
PlayAudioStreamForPlayer(playerid, "http://www.fileden.com/files/2012/9/26/3351322/Hiphop%20Instrumentals%20-%20rap%20freestyle%20beats.mp3");//play it
return 1;
}
{
if(IsPlayerNPC(playerid)) return 1;
//Set up the class selection
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,-1753.6743,885.2703,295.8750);
SetPlayerCameraPos(playerid,-1753.6849,892.0016,295.8750);
SetPlayerCameraLookAt(playerid,-1753.6743,885.2703,295.8750);
SetPlayerFacingAngle(playerid,0.6323);
//Do things to the player
SetPlayerColor(playerid,COLOR_DEADCONNECT);
SetPlayerTeamFromClass(playerid,classid);
public OnPlayerSpawn(playerid)
{
StopAudioStreamForPlayer(playerid);//stop it
return 1;
}
{
if(IsPlayerNPC(playerid))
{
if(strcmp(PlayerName(playerid), "Billy") == 0)
{
PutPlayerInVehicle(playerid,NPCTram,0);
SetPlayerColor(playerid,COLOR_DARKOLIVEGREEN);
SetPlayerSkin(playerid,255);
IsSpawned[playerid] =1;
print("[NPC SPAWN] Billy has been placed in his tram.");
}
return 1;
}
new string[128];
new pname[128];