Setplayerhealth to 0
#2

Create a variable

pawn Код:
// ontop of script under includes
new bool:IsInOfficeBuilding[MAX_PLAYERS];

//  In the code you provided
IsInOfficeBuilding[playerid] = true;
// now use onplayergivedamage to check if he is in the building, if so he will die.
// also use IsInOfficeBuilding[playerid] = false; when he exits the building.
Reply


Messages In This Thread
Setplayerhealth to 0 - by ZizPower7610 - 25.03.2013, 11:31
Re: Setplayerhealth to 0 - by Apenmeeuw - 25.03.2013, 12:05

Forum Jump:


Users browsing this thread: 1 Guest(s)