tbx 7 Odesláno: 17. Září, 2010 Share Odesláno: 17. Září, 2010 Vím, že to tady je od freewalla(myslim) ale to je pouze funkce bez stocku, tak vam sem davamfunkci se stockem Bez souradnice 'Z' (výšky) stock IsPlayerInArea(playerid,Float:x_min,Float:x_max,Float:y_min,Float:y_max) { new Float:x_isia,Float:y_isia,Float:z_isia; GetPlayerPos(playerid,x_isia,y_isia,z_isia); #pragma unused z_isia if(x_isia > x_min && x_isia < x_max && y_isia > y_min && y_isia < y_max) { return 1; } return 0; } Použití > IsPlayerInArea(playerid,Float:x_min,Float:x_max,Float:y_min,Float:y_max); pozice x_min atp. urcite podle obrazku dole. S pozicí 'Z' stock IsPlayerInAreaWithZ(playerid,Float:x_min,Float:x_max,Float:y_min,Float:y_max,Float:z_min,Float:z_max) { new Float:x_isia,Float:y_isia,Float:z_isia; GetPlayerPos(playerid,x_isia,y_isia,z_isia); if(x_isia > x_min && x_isia < x_max && y_isia > y_min && y_isia < y_max && z_isia > z_min && z_isia < z_max) { return 1; } return 0; } Tento stock se souradnici Z neni otestovany ! Pouzití > IsPlayerInAreaWithZ(playerid,Float:x_min,Float:x_max,Float:y_min,Float:y_max,Float:z_min,Float:z_max); Obrazek, podle ktereho urcite souradnice Bylo to delane POUZE pro orientaci, neumim v PS NIKDY NIC NEPREPISUJTE VE STOCKU Kdyby neco nefungovalo nebo byly jine problemy, napiste do komentu Link to comment Share on other sites More sharing options...
Guest Punkevník Odesláno: 17. Září, 2010 Share Odesláno: 17. Září, 2010 dobry tut ale mam pocit ze to tu uz je a oprav ma ak a mylim ... ak to tu uz je tak dam 0/10 ale ak to tu neni dam 10/10 Link to comment Share on other sites More sharing options...
tbx 7 Odesláno: 17. Září, 2010 Author Share Odesláno: 17. Září, 2010 dobry tut ale mam pocit ze to tu uz je a oprav ma ak a mylim ... ak to tu uz je tak dam 0/10 ale ak to tu neni dam 10/10 Díky. Jak říkám, se tady funkce od freewalla ale to je pouze funkce (podminka) ktera se tezko vyuziva .. Link to comment Share on other sites More sharing options...
Guest Punkevník Odesláno: 17. Září, 2010 Share Odesláno: 17. Září, 2010 tk ti ptm dam 7/10 ked tu ta funkcia je ... ale si ju prerobil :thumbup: Link to comment Share on other sites More sharing options...
Marwin37 5 Odesláno: 17. Září, 2010 Share Odesláno: 17. Září, 2010 už to tu jednou je a funkce kterou jsi nazval "IsPlayerInAreaWithZ" se používá pod názvem IsPlayerInCube mrkni na sa-mp forko Link to comment Share on other sites More sharing options...
tbx 7 Odesláno: 17. Září, 2010 Author Share Odesláno: 17. Září, 2010 Aha mno tady to ale jeste neni a je to pravda mno ze je to spise kostka . Ale i tak, nemymslim ze je to tady zbytecne Link to comment Share on other sites More sharing options...
1M2A3K4S 0 Odesláno: 20. Duben, 2011 Share Odesláno: 20. Duben, 2011 nevíte co mám dát, ze kdyz nejsem v té zone tak mi vypise ze: "nejses v garaz" a pod. pls portebuju to -- stř 20. dub 2011 18:27:20 -- nevíte co mám dát, ze kdyz nejsem v té zone tak mi vypise ze: "nejses v garaz" a pod. pls portebuju to Link to comment Share on other sites More sharing options...
Guest Frodo Odesláno: 20. Duben, 2011 Share Odesláno: 20. Duben, 2011 if(!IsPlayerInArea(tvoje souradnice)) return SendClientMessage(playerid, 0xFFFFFF,"Nejsi v garazi"); Link to comment Share on other sites More sharing options...
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