Niki 1 Odesláno: 15. Leden, 2015 Share Odesláno: 15. Leden, 2015 Zdravím, Existuje funkcia IsPlayerInRangeOfPlayer alebo niečo podobné ? Link to comment Share on other sites More sharing options...
0 Globální moderátor Hip 191 Odesláno: 15. Leden, 2015 Globální moderátor Share Odesláno: 15. Leden, 2015 ano je dokonce na wiki... Link to comment Share on other sites More sharing options...
0 Niki 1 Odesláno: 15. Leden, 2015 Author Share Odesláno: 15. Leden, 2015 ďakujem a ako sa volá? 1 Link to comment Share on other sites More sharing options...
0 Globální moderátor Hip 191 Odesláno: 15. Leden, 2015 Globální moderátor Share Odesláno: 15. Leden, 2015 IsPlayerInRangeOfPoint? Link to comment Share on other sites More sharing options...
0 Albus Brambůrek 41 Odesláno: 15. Leden, 2015 Share Odesláno: 15. Leden, 2015 tak to bylo dobrý :D http://pastebin.com/xYZu0HgK Jinak toto je take pěkné je to vlastně to samé ale přehledněji Link to comment Share on other sites More sharing options...
0 LYRIcS 88 Odesláno: 15. Leden, 2015 Share Odesláno: 15. Leden, 2015 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); } 1 Link to comment Share on other sites More sharing options...
0 Globální moderátor Hip 191 Odesláno: 15. Leden, 2015 Globální moderátor Share Odesláno: 15. Leden, 2015 jo Player aha ... já myslel že se ptáš přímo na tu funkci .. Link to comment Share on other sites More sharing options...
0 Niki 1 Odesláno: 16. Leden, 2015 Author Share Odesláno: 16. Leden, 2015 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 More sharing options...
0 eXot 18 Odesláno: 16. Leden, 2015 Share Odesláno: 16. Leden, 2015 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 More sharing options...
0 Niki 1 Odesláno: 16. Leden, 2015 Author Share Odesláno: 16. Leden, 2015 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 More sharing options...
0 eXot 18 Odesláno: 16. Leden, 2015 Share Odesláno: 16. Leden, 2015 Zamyslel si sa vôbec nad tým ako to funguje ? .. Keby to aspoň vyskúšaš tak zistíš že je to tak ako chceš. Link to comment Share on other sites More sharing options...
Dotaz
Niki 1
Zdravím,
Existuje funkcia IsPlayerInRangeOfPlayer alebo niečo podobné ?
Link to comment
Share on other sites
10 odpovědí na tuto otázku
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now