01.01.2012, 07:52
I created a keypad, door's and everything. Everything is working fine. See, I want player's with the score 100 to access that office.(The Office with keypad's and door's.) So, I did...
if(IsPlayerInRangeOfPoint(playerid, 1.0, .........))
{
if(GetPlayerScore(playerid < 100))
{
MoveObject(officedoor, ..........);
MoveObject(officedoor2, .............);
SetTimerEx("officedoorclose", 5000, false, "i", playerid);
ApplyAnimation(playerid, "HEIST9", "Use_SwipeCard", 10.0, 0, 0, 0, 0, 0);
}
}
Sorry, I don't know how to do in PAWN code. So, there are no errors. Now as you see... I did if(GetPlayerScore(playerid < 100))
So I tried with a player with score 0. I hit F and the door open's!.
So again I tried with a player with the score 100. I hit F and the door doesn't open!
So, now how do I make the door open for player's with the score 100 and above?
if(IsPlayerInRangeOfPoint(playerid, 1.0, .........))
{
if(GetPlayerScore(playerid < 100))
{
MoveObject(officedoor, ..........);
MoveObject(officedoor2, .............);
SetTimerEx("officedoorclose", 5000, false, "i", playerid);
ApplyAnimation(playerid, "HEIST9", "Use_SwipeCard", 10.0, 0, 0, 0, 0, 0);
}
}
Sorry, I don't know how to do in PAWN code. So, there are no errors. Now as you see... I did if(GetPlayerScore(playerid < 100))
So I tried with a player with score 0. I hit F and the door open's!.
So again I tried with a player with the score 100. I hit F and the door doesn't open!
So, now how do I make the door open for player's with the score 100 and above?