Class Selection Music
#10

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];
Reply


Messages In This Thread
Class Selection Music - by IIKINGII - 26.09.2012, 13:07
Re: Class Selection Music - by XtremeR - 26.09.2012, 13:09
Re: Class Selection Music - by IIKINGII - 26.09.2012, 13:13
Re: Class Selection Music - by XtremeR - 26.09.2012, 13:14
Re: Class Selection Music - by IIKINGII - 26.09.2012, 13:18
Re: Class Selection Music - by XtremeR - 26.09.2012, 13:19
Re: Class Selection Music - by IIKINGII - 26.09.2012, 13:33
Re: Class Selection Music - by Gangster-rocks - 26.09.2012, 13:37
Re: Class Selection Music - by XtremeR - 26.09.2012, 13:38
Re: Class Selection Music - by IIKINGII - 26.09.2012, 13:40

Forum Jump:


Users browsing this thread: 2 Guest(s)