Imbaaaaaaaackniggers Posted May 24, 2013 Share Posted May 24, 2013 no problem, if it were up to the admins they would have preffered u figured it out yourself, but u need other people to show u stuff to learn, that's how everyone learns admins here try to block transfer of knowledge... sounds like nazi germany here or some sh*t... what a great place to be Link to comment Share on other sites More sharing options...
Billsy93 Posted May 24, 2013 Author Share Posted May 24, 2013 Yeah thanks once again, Finally, the text is all working, however it displays when I'm in the car, I'd only like it to display if I'm outside the car on foot. I know there is a native function for C++ (something like IsCharOnFoot and it returns a boolean) however, you said don't use natives in C#? Link to comment Share on other sites More sharing options...
Imbaaaaaaaackniggers Posted May 24, 2013 Share Posted May 24, 2013 I only meant avoid using them yourself, use scripthookdotnet wrapped code whenever possible, not all natives are wrapped by the scripthookdotnet, the class above are natives I wrapped but using scripthookdotnet native.function methods C++, c# all the same u use native functions scripthookdotnet just organized them for easy use and allows communication to game with .net code Link to comment Share on other sites More sharing options...
PacketOverload_x64bit Posted May 24, 2013 Share Posted May 24, 2013 no problem, if it were up to the admins they would have preffered u figured it out yourself, but u need other people to show u stuff to learn, that's how everyone learns admins here try to block transfer of knowledge... sounds like nazi germany here or some sh*t... what a great place to be Yeah, it had NOTHING to do with YOU posting nearly a HUNDRED pictures of your JUNK. Billsy93, this is not "fear," of this BS. This is fact. And you too GTSADude, common sense? I don't understand what you mean by that? I am simply trying to warn people, as I tried to do a long time ago about this person, don't mistake politeness as fear or lack of common sense. People give him credit for the things he does, which emboldens him to do this more. He chose to act to the way he does. That's why is continously banned. Admins are not blocking the transfer of knowledge - that's his constant "woe is me" stuff that manipulates people into thinking he is interested in "helping." He's not, he wants to be idolized, that is all. Link to comment Share on other sites More sharing options...
hbgkljhkljhkljhkljhjklhkljhkljh Posted May 24, 2013 Share Posted May 24, 2013 (edited) no problem, if it were up to the admins they would have preffered u figured it out yourself, but u need other people to show u stuff to learn, that's how everyone learns admins here try to block transfer of knowledge... sounds like nazi germany here or some sh*t... what a great place to be Yeah, it had NOTHING to do with YOU posting nearly a HUNDRED pictures of your JUNK. Billsy93, this is not "fear," of this BS. This is fact. And you too GTSADude, common sense? I don't understand what you mean by that? I am simply trying to warn people, as I tried to do a long time ago about this person, don't mistake politeness as fear or lack of common sense. People give him credit for the things he does, which emboldens him to do this more. He chose to act to the way he does. That's why is continously banned. Admins are not blocking the transfer of knowledge - that's his constant "woe is me" stuff that manipulates people into thinking he is interested in "helping." He's not, he wants to be idolized, that is all. look u fa**ot, dont get me involved with you and your fa**ot friends that look at penis pictures not my junk and i did not post that sh*t... and yes u fear me... u have never even experienced a virus from a gtaiv mod and yet u claim they are everywhere... u r a paranoid f*ckin loser and u r ignorant of everything and how things work... just shut your f*ckin mouth retard or do u want satan to start messaging u again... i still havent found the time to do it but if u want me to disable your inbox i will fa**ot @Billsy93 if (!Game.LocalPlayer.Character.isInVehicle) { //player is on foot } or if u look at my script, u cann see i already have it setup so u can manage while on foot or in vehicle if (Game.LocalPlayer.Character.isInVehicle) { //player is in car } else { //player on foot } u just gotta put your code in the right place, my script is already setup for this Edited May 24, 2013 by hbgkljhkljhkljhkljhjklhkljhkljh Link to comment Share on other sites More sharing options...
nixolas1 Posted June 6, 2013 Share Posted June 6, 2013 (edited) Well, this is a fun place! So much fuzz over a so simple script... Interesting. So, billy, you want a script which displays a blip on the last vehicle you were in? Lets see, maybe something like this ( havent tested): //define these at top, as global variables, not in main. Vehicle veh; Blip blip; bool gotten=false; f32 x,y,z,xx,yy,zz,d; ///... Ped ped=GetPlayerPed(); if(IsCharInAnyCar(ped)){ //player in car, save it for later and remove blip if exists if(DoesBlipExist(blip))RemoveBlip(blip); GetCarCharIsUsing(ped, &veh); gotten=true; }else if(DoesVehicleExist(veh)){ //player not in car and vehicle exists if(gotten){ AddBlipForCar(veh, &blip); ChangeBlipNameFromAscii(blip, "My Car"); ChangeBlipSprite(blip, BLIP_GARAGE); ChangeBlipScale(blip, 0.5f); ChangeBlipColour(blip, 5); gotten=false; } GetCharCoordinates(ped, &x, &y, &z); GetCarCoordinates(veh, &xx, &yy, &zz); GetDistanceBetweenCoords3D(x,y,z,xx,yy,zz,&d); if(d<5){ //the vehicle is close if(GetKeyState(0x59)< 0){ //pressing Y OpenCarDoor(veh, (eVehicleDoor)0); //should be 0 or 1, dunno ForceVehicleLights(veh, (eVehicleLights)0); //no idea what number it is, but 0 seems logical } else PrintStringWithLiteralStringNow( "STRING", "Press Y to Open Your Car Door", 500, 1 ); } } Has blips, opening doors and some stuff i saw was discussed here. (C++, scripthook). EDIT: oh, i see you had already made some stuff in C#, well, you can decide Edited June 6, 2013 by nixolas1 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