Spawning with armour.
#1

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.. }
Reply
#2

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

SetPlayerArmour(playerid);
________
fat girl Cams
Reply
#3

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

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
Reply
#5

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


Forum Jump:


Users browsing this thread: 4 Guest(s)