Jump to content
  • 0

pomoc IsPlayerInRangeOfPlayer


Niki

Dotaz

10 odpovědí na tuto otázku

Recommended Posts

  • 0

 

stock IsPlayerInRangeOfPlayer(playerid, targetid, Float:range)
{
    new Float:x, Float:y, Float:z;
    GetPlayerPos(targetid, x, y, z);
    return IsPlayerInRangeOfPoint(playerid, range, x, y, z);
}
  • Líbí se mi to! (+1) 1
Link to comment
Share on other sites

  • 0

a ako ak to chcem použiť nieak takto ?

if(IsPlayerInRangeOfPlayer(playerid, id, 5))
else
{
return SCM(playerid,COLOR_RED,"[ ! ]{FFFFFF} Musíš byť pri hráčovy !");
}
Link to comment
Share on other sites

  • 0

Môžeš aj tak, ale toto máš kratšie

if(!IsPlayerInRangeOfPlayer(playerid, id, 5)) return SCM(playerid,COLOR_RED,"[ ! ]{FFFFFF} Musíš byť pri hráčovy !");
Link to comment
Share on other sites

  • 0

Ale ja to potrebujem do príkazu /zat..

A chcem to tak aby keď hráč nie je pri hráčovy tak aby mu vtedy napísalo...

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...