24.02.2014, 16:46
Hello, i got my problem with PlayertoPoint
I Want to do if the player is in range and in interior 0
They to something
Here my code
This is my got for interior
PlayerInfo[i][pInt] == 0
I dont know where to put it?
Any help?
I Want to do if the player is in range and in interior 0
They to something
Here my code
PHP код:
public UpdateRadiation()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
new Float:Vie;
if(IsPlayerConnected(i) && AdminDuty[i] == 0 && PlayerInfo[i][pJail] == 0)
{
if(PlayerToPoint(1090.0, i,1915,1790,10.5048))
{
GetPlayerHealth(i,Vie);
SetPlayerHealth(i,Vie-2);
GameTextForPlayer(i,"~r~Radioation Zone!",5000,3);
}
}
}
}
PlayerInfo[i][pInt] == 0
I dont know where to put it?
Any help?