SA-MP Forums Archive
Spawning with armour. - 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: Spawning with armour. (/showthread.php?tid=128430)



Spawning with armour. - GaGlets(R) - 17.02.2010

So.. i have made level system.. i need to know only one thing..

how can i make armour to spawn with ONE player - player who bought level

Код:
if(blablabla)
{
if(boughted == 1)
{
There i need help - how to make spawning with armour.. }



Re: Spawning with armour. - aircombat - 17.02.2010

First Of All it should be onplayerspawn and the function is :

SetPlayerArmour(playerid);
________
fat girl Cams


Re: Spawning with armour. - iron_war_lord - 17.02.2010

Goes at very top (Declarations)
Код:
new bool:bBoughtArmour;
public OnPlayerSpawn(playerid):
Код:
if(bBoughtArmour == true)
	{
		SetPlayerArmour(playerid, 100.0);
	}



Re: Spawning with armour. - GaGlets(R) - 17.02.2010

Quote:
Originally Posted by Zinglish
Goes at very top (Declarations)
Код:
new bool:bBoughtArmour;
public OnPlayerSpawn(playerid):
Код:
if(bBoughtArmour == true)
	{
		SetPlayerArmour(playerid, 100.0);
	}
Tnx Alot


Re: Spawning with armour. - iron_war_lord - 18.02.2010

Quote:
Originally Posted by GaGlets®
Quote:
Originally Posted by Zinglish
Goes at very top (Declarations)
Код:
new bool:bBoughtArmour;
public OnPlayerSpawn(playerid):
Код:
if(bBoughtArmour == true)
	{
		SetPlayerArmour(playerid, 100.0);
	}
Tnx Alot
Meh, wrong code man sorry, try this rather:

Goes at very top (Declarations)
Код:
new bool:bBoughtArmour[MAX_PLAYERS];
public OnPlayerSpawn(playerid):
Код:
if(bBoughtArmour[playerid] == true)
	{
		SetPlayerArmour(playerid, 100.0);
	}
[/quote]