SA-MP Forums Archive
I need help Thanks! - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: I need help Thanks! (/showthread.php?tid=156303)



I need help Thanks! - Kiki_Nvidia - 21.06.2010

My problem is with gun's, before i have this:
Код:
if (PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)//Surenos spawn
		{
		  SetPlayerToTeamColor(playerid);
		  GivePlayerWeapon(playerid,4,1);
		  SetPlayerInterior(playerid, 5);
		  SetPlayerPos(playerid, 2345.6570,-1185.5266,1027.9766);
		  PlayerInfo[playerid][pInt] = 5;
		  return 1;
		}
and now is
Код:
if (PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)//Surenos spawn
		{
		  SetPlayerToTeamColor(playerid);
		  SetPlayerInterior(playerid, 5);
		  SetPlayerPos(playerid, 2345.6570,-1185.5266,1027.9766);
		  PlayerInfo[playerid][pInt] = 5;
		  return 1;
		}
but when i spawn still i have that weapon's any idea for help? Thanks


Re: I need help Thanks! - titanak - 22.06.2010

maybe check your OnPlayerConnect or OnPlayerSpawn there will be GivePlayerWeapon(playerid,4,1);


Re: I need help Thanks! - Kiki_Nvidia - 22.06.2010

Quote:
Originally Posted by » Titan «
maybe check your OnPlayerConnect or OnPlayerSpawn there will be GivePlayerWeapon(playerid,4,1);
I solved the problem, anyway Thank you for your effort!