SA-MP Forums Archive
Hello how to - 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: Hello how to (/showthread.php?tid=479457)



Hello how to - MahdiGames - 05.12.2013

Hello iv Stunting gm , and iv added a music in on player connect iv added a streamer, but the org gamemode music still run how to remove the gm org music and add the streamer

Here is onplayerconnect codes:

Код:
public OnPlayerConnect(playerid)
{
    PlayAudioStreamForPlayer(playerid, "http://servers.internet-radio.com/tools/playlistgenerator/?u=http://cp.internet-radio.org.uk:15634/listen.pls&t=.pls");
    ApplyAnimation(playerid,"DANCING","DNCE_M_B",4.0,1,0,0,0,-1); //smooth dancing. It's most fitting to the music
    new pName[MAX_PLAYER_NAME];
    SetPlayerColor(playerid, PlayerColors[playerid]);
    seconds[playerid] = 0;
    PlayerInfo[playerid][SpawnDance] = true;
    ApplyAnimation(playerid,"DANCING","DNCE_M_B",4.0,1,0,0,0,-1); //preventing a bug for
    SendDeathMessage(INVALID_PLAYER_ID, playerid, 200);
    GetPlayerName(playerid, pName, sizeof(pName));
    SendClientMessage(playerid, COLOR_YELLOW, "Welcome to {6EF83C}>> xXx Stunt Paradise Awesome {F81414}v5.5 {6EF83C}<<");
	SendClientMessage(playerid, COLOR_TELEPORT,"[CMDS] {F3FF02}type {C3C3C3}/cmds {F3FF02}for all {0049FF}commands {F3FF02}list server");
	SendClientMessage(playerid, COLOR_TELEPORT,"[NEWS] {F3FF02}type {C3C3C3}/news {F3FF02}see the new updates!");
	SendClientMessage(playerid, RED,"if you need any help use /help or ask the online /admins, have fun!");
	SendClientMessage(playerid, COLOR_TELEPORT,"[SITES] {F3FF02}Visit us at ******** {F3FF02}www.********.com/stuntparadise");
	TextDrawShowForPlayer(playerid, Textdraw0);
	TextDrawShowForPlayer(playerid, Textdraw1);
	TextDrawShowForPlayer(playerid, Textdraw2);
	TextDrawShowForPlayer(playerid, Textdraw3);
	TextDrawShowForPlayer(playerid, Textdraw4);
	TextDrawShowForPlayer(playerid, Textdraw5);
    SetPlayerMapIcon( playerid, 0, 365.3440,2537.0303,16.6648, 27, 0 );
    SetPlayerMapIcon( playerid, 1, -46.6853,2535.6875,16.4844, 37, 0 );
    SetPlayerMapIcon( playerid, 2, 523.3647,2373.8071,30.0429, 37, 0 );
    SetPlayerMapIcon( playerid, 3, -2631.3662,1360.5168,6.8819, 37, 0 );
    SetPlayerMapIcon( playerid, 4, 120.6183,2587.7178,17.0824, 52, 0 );
    SetPlayerMapIcon( playerid, 5, 1116.8577,2494.9253,432.0484, 52, 0 );
	SetPlayerMapIcon( playerid, 6, -2526.7405,1424.2708,6.2018, 23, 0 );
	SetPlayerMapIcon( playerid, 7, 1145.3593,2495.6267,432.0521, 48, 0 );
	SetPlayerMapIcon( playerid, 8, 400.8784,2530.7212,16.2651, 48, 0 );
	SetPlayerMapIcon( playerid, 9, 198.3738,2531.8115,16.3759, 51, 0 );
	SetPlayerMapIcon( playerid, 10, 99.2797,2475.1724,16.1871, 48, 0 );
	SetPlayerMapIcon( playerid, 11, 263.8685,2531.5601,16.4093, 53, 0 );
	ClearVars(playerid);
	return 1;
}



Re: Hello how to - Loot - 05.12.2013

Comment out the first line below OnPlayerConnect callback.