TrmPlmn Posted January 31, 2021 Share Posted January 31, 2021 hello i have ZOMBlE Scirpt it's https://community.multitheftauto.com/index.php?p=resources&s=details&id=347 i want Not Follwoing me how thx Link to comment
Tekken Posted February 1, 2021 Share Posted February 1, 2021 You can set an elementData to the player and within this function zombie_check () in client side you check first if localPlayer has that element data if it does you do not run the code the else run the code. Like this setElementData(localPlayer, "zombiesNotFollow", true); --You can set this both client and server side, but I suggest server side as it's much more secure. and function zombie_check () -- LINE 33 if (getElementData(localPlayer, "zombiesNotFollow") or false) then return; end if (getElementData (getLocalPlayer (), "zombie") ~= true) and ( isPedDead ( getLocalPlayer () ) == false ) then -- a lot of code here......... end end TBW there are a lot of optimizations to be done in this resource, I'm currently working on a better version will release when it's done! Link to comment
TrmPlmn Posted February 1, 2021 Author Share Posted February 1, 2021 (edited) thank you its work + we have bad argument in line 86 ZOMlBE spawn next me how remove spawn Edited February 1, 2021 by TrmPlmn Link to comment
Tekken Posted February 3, 2021 Share Posted February 3, 2021 Line 440 function SpawnZombie () replace this: if isElement(thePlayer) then with this: if isElement(thePlayer) and not (getElementData(thePlayer, "zombiesNotFollow") or false) then Quote bad argument in line 86 That may happen because the zombie died or got deleted. 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