abod99119911 Posted August 9, 2014 Share Posted August 9, 2014 how to make that player wont get wanted in LV no stars so player don't get wanted level if the DM or hijacker other car etc.. Link to comment
Drakath Posted August 9, 2014 Share Posted August 9, 2014 You could try making a col shape and make your script check if player is in that col shape. Link to comment
abod99119911 Posted August 9, 2014 Author Share Posted August 9, 2014 (edited) i just want to know how to make zone and disable wanted in there Edited August 9, 2014 by Guest Link to comment
Bonsai Posted August 9, 2014 Share Posted August 9, 2014 no 1 know how to add zone so the player when get inside it they wont get wanted Can't you read what that other guy wrote? Link to comment
abod99119911 Posted August 9, 2014 Author Share Posted August 9, 2014 please some one tell help me Link to comment
abod99119911 Posted August 9, 2014 Author Share Posted August 9, 2014 getZoneName (I think) so waht i will do with that ? and for what is that command? Link to comment
Et-win Posted August 9, 2014 Share Posted August 9, 2014 It gets the zone name... Set the bool to 'true' to get city names only. Should able to get "Las Vegas" with it. Click on the code, read the wiki. Link to comment
[UCG]Mike Posted August 9, 2014 Share Posted August 9, 2014 Example x, y, z = LVarea local LVcolshape = createColSphere(x, y, z, 100.0) function LVwelcomemsg (thePlayer) outputChatBox("Welcome You Are Now in LV", thePlayer, 255, 255, true) end addEventHandler("onColShapeHit", LVcolshape, LVwelcomemsg) Link to comment
abod99119911 Posted August 9, 2014 Author Share Posted August 9, 2014 Example x, y, z = LVarea local LVcolshape = createColSphere(x, y, z, 100.0) function LVwelcomemsg (thePlayer) outputChatBox("Welcome You Are Now in LV", thePlayer, 255, 255, true) end addEventHandler("onColShapeHit", LVcolshape, LVwelcomemsg) so now the player wont get wanted? in LV Link to comment
Et-win Posted August 9, 2014 Share Posted August 9, 2014 setTimer getZoneName setPlayerWantedLevel if (zone == "Las Venturas") then Now you can try to make it. Use the timer to check every 1~5 seconds or she/he is in LV. (Zone) It's easy, really. Just think I already did alot of the script. Link to comment
Bonsai Posted August 9, 2014 Share Posted August 9, 2014 Why do you even want such a script? You obviously don't understand ANYTHING about this stuff at all. Maybe you should spend your time in a better way. Link to comment
abod99119911 Posted August 9, 2014 Author Share Posted August 9, 2014 Why do you even want such a script?You obviously don't understand ANYTHING about this stuff at all. Maybe you should spend your time in a better way. please if u cant help then shut up Link to comment
Bonsai Posted August 9, 2014 Share Posted August 9, 2014 Why do you even want such a script?You obviously don't understand ANYTHING about this stuff at all. Maybe you should spend your time in a better way. please if u cant help then shut up If you can't do even the most simple script on your own, then you definitely don't belong here. You don't want to learn how to do this, you just want someone to do it for you. Unfortunately, sooner or later someone is gonna post a working script and you win. Link to comment
Mr_Moose Posted August 9, 2014 Share Posted August 9, 2014 please if u cant help then shut up If you want help then don't ask people to "shut up", calm down for a while, read a beginners guide to scripting to understand the basics like this maybe. Then you can ask for help. Link to comment
abod99119911 Posted August 9, 2014 Author Share Posted August 9, 2014 is that work ? and for the meta side-- Link to comment
abod99119911 Posted August 9, 2014 Author Share Posted August 9, 2014 please if u cant help then shut up If you want help then don't ask people to "shut up", calm down for a while, read a beginners guide to scripting to understand the basics like this maybe. Then you can ask for help. but i get the information from Mta wiki and try to understand here how to work!! Link to comment
Saml1er Posted August 9, 2014 Share Posted August 9, 2014 Why do you even want such a script?You obviously don't understand ANYTHING about this stuff at all. Maybe you should spend your time in a better way. please if u cant help then shut up He actually gave you a good advice. Learn how to respect. Link to comment
Et-win Posted August 9, 2014 Share Posted August 9, 2014 if (zone == "Las Venturas") then setPlayerWantedLevel ( thePlayer, 0 ) end That's correct, except 'thePlayer'. use 'getElementsByType("player")' to loop through all players, make it check for everyone. Now only that and the 'setTimer' to go. Link to comment
abod99119911 Posted August 10, 2014 Author Share Posted August 10, 2014 im using that but player still get wanted in LV can i disable the wantted it not working local players = getElementsByType ( "player" ) for theKey,thePlayer in ipairs(players) do local level = getPlayerWantedLevel ( thePlayer ) if ( level > 0 ) then -- if the player has any stars, outputChatBox ( getPlayerName ( thePlayer ) .. " has a wanted level of " .. level .. " stars!" ) end end if (zone == "Las Venturas") then setPlayerWantedLevel ( thePlayer, 0 ) end can i use that? Link to comment
Drakath Posted August 10, 2014 Share Posted August 10, 2014 "zone" is not specified. local zone = getZoneName(x, y, z) Link to comment
abod99119911 Posted August 10, 2014 Author Share Posted August 10, 2014 "zone" is not specified. local zone = getZoneName(x, y, z) i was asking on the first how to add zone and how to get the X, Y, Z ? can u give me example please ? Link to comment
Et-win Posted August 10, 2014 Share Posted August 10, 2014 local x, y, z = getElementPosition(*The player out of the LOOP from getElementsByType*) Atleast he is learning Link to comment
abod99119911 Posted August 11, 2014 Author Share Posted August 11, 2014 what i always wanted to say to take the zone location i think u still didnt understand me! i hope u now understand me each in each point we take (X, Y, Z) to make zone ? that what i know Link to comment
xXMADEXx Posted August 11, 2014 Share Posted August 11, 2014 Instead of trying to do all sorts of weird position comparisons, you should just create a col shape.. Link to comment
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