• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] How can I do this?
#2
that's a bit more complicated. This is not the best way to make it at all, but I'm using this:
Code:
new PlayerDM[5][3][MapInfo] =
{
    {           //   X         Y                Z       A              Name
        {1306.9261,2195.0313,11.0234,212.9963,"Baseball"}, // home
        {1391.2493,2111.0488,11.0156,321.7007,"Baseball"},  // away
        {1367.4415,2196.2263,14.2495,177.9026,"Baseball"} // spec
    }
}
forward Timer();
public Timer()
{
new Float:zz;
GetPlayerPos(i, zz, zz, zz);
if(zz <  floatround(PlayerDM[Map][TEAM_HOME][z], floatround_ceil))
    SetGravity(0.0);
}

and make a timer for the public that plays every 250ms for example.
  Reply


Messages In This Thread
How can I do this? - by Boxi - 2021-02-26, 09:14 PM
RE: How can I do this? - by destiezk - 2021-02-26, 09:45 PM
RE: How can I do this? - by Boxi - 2021-02-27, 12:46 PM
RE: How can I do this? - by destiezk - 2021-02-28, 10:45 AM
RE: How can I do this? - by Virsenas - 2021-02-26, 10:30 PM
RE: How can I do this? - by Boxi - 2021-02-27, 12:47 PM
RE: How can I do this? - by Virsenas - 2021-02-27, 01:14 PM
RE: How can I do this? - by Kwarde - 2021-02-27, 02:13 PM
RE: How can I do this? - by DandoRYx - 2021-02-28, 12:11 PM
RE: How can I do this? - by Boxi - 2021-02-28, 01:58 PM
RE: How can I do this? - by Y_Less - 2021-03-07, 01:15 PM

Forum Jump: