IsPlayerInRangeOfPoint
#1

Heya, where should put this thing?

Code:
      if(IsPlayerInRangeOfPoint(playerid, 5.0, 383.75933800,2481.53393600,15.23467800))
    {
        SetPlayerVelocity(playerid,-1.5,0,0.5);
    }
    if(IsPlayerInRangeOfPoint(playerid, 5.0, 1836.23986800,-2593.30175800,12.29717100))
    {
        SetPlayerVelocity(playerid,-1.5,0,0.5);
    }
I'm asking, because I have put in one place and it didn't work... (checked in-game: no effect)
Reply
#2

You must put that:
Code:
if(IsPlayerInRangeOfPoint(playerid, 5.0, 383.75933800,2481.53393600,15.23467800))
{
    SetPlayerVelocity(playerid,-1.5,0,0.5);
}
if(IsPlayerInRangeOfPoint(playerid, 5.0, 1836.23986800,-2593.30175800,12.29717100))
{
    SetPlayerVelocity(playerid,-1.5,0,0.5);
}
on OnPlayerUpdate
Reply
#3

No, you don't HAVE to, it would work if you do, but maybe he wants it for a command. If yes put it under the command. Maybe he wants it under OnPlayerSpawn, (which is unlikely) but you never know.
Reply
#4

No, no. Costel made a good work. It's not for a command, I wanted only make "on-foot ramps".
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)