SA-MP Forums Archive
[NEW] Help with Pawno file - 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: [NEW] Help with Pawno file (/showthread.php?tid=288649)



[NEW] Help with Pawno file - c0GI - 08.10.2011

Hy, i have a SAMP RP server and i want to add a admin skin, and give admin ARMOUR + HP when he spawn!

Like that:

public OnPlayerSpawn(playerid)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] > 1)
{
SetPlayerSkin(playerid, 294);
SetPlayerArmour(playerid, 9999);
SetPlayerHealth(playerid, 9999);
}
}


That work! But, once I SPAWN or any admin or player, THE SONG is playing and dont STOP?? WHY! HELP HELP HELp


Re: [NEW] Help with Pawno file - Stigg - 08.10.2011

Wrong section, but:
pawn Код:
PlayerPlaySound(playerid,1186 ,0, 0, 0);
Put that in OnPlayerSpawn.


Re: [NEW] Help with Pawno file - c0GI - 08.10.2011

yeaaaaa!!! YEAA u are a KING :*** It works!