
Anubhav
Members-
Posts
2,277 -
Joined
-
Last visited
Everything posted by Anubhav
-
Why don't you try yourself?
-
addEventHandler( "onClientPlayerDamage", root, function ( theAttacker ) if isElement( source ) and isElement( theAttacker ) then --- check if is element ... if getElementType(theAttacker) == "player" then if getTeamName( getPlayerTeam( theAttacker ) ) == "Army" and getTeamName( getPlayerTeam( source ) ) == "SWAT" then --- check teams cancelEvent() end end end end
-
That means parent is not set. Please check if its..
-
Add me on skype, anubhav.agarwal87. I know how to do that.
-
No problem. I told right
-
Replace it with any other vehicle. There are many other vehicles too!
-
Just add me on skype, anubhav.agarwal87. I'll make you learn SQLite,
-
I am not sure what is wrong now :-/.
-
Replace it with resourceRoot it will work fine then. And change destroyVeh to destroyVehicle typo.
-
See my edited post. And replace 'colshape' with your colshape variable.
-
addEventHandler("onColShapeHit", colshape, function(hit) local occupied = getPedOccupiedVehicle(hit) if hit then outputChatBox("You car will be destroyed within 5 secs! This area doesn't accept vehicles!", hit) setTimer(destroyVeh, 5000, 1, occupied) end setElementData(hit, "no-damage", true) end ) addEventHandler("onColShapeLeave", colshape, function(hit) removeElementData(hit, "no-damage") end ) addEventHandler("onPlayerDamage", root, function() if getElementData(hit, "no-damage") then cancelEvent() end end )
-
Damn, keep increasing it then.
-
Add me at skype, we'll see. anubhav.agarwal87
-
Try changing the size to '5000' And see if the green boxes appear.
-
Can you see the boxes? FIND in SA.
-
-- if server sided function health(thePlayer) local ppHealth = getElementHealth(thePlayer) setElementHealth(thePlayer,ppHealth + 2) end addCommandHandler("health", health) -- if client sided function health() local ppHealth = getElementHealth(localPlayer) setElementHealth(localPlayer,ppHealth + 2) end
-
He must use account-date in a proper way.. I am not sure contact him.
-
Which are those lines in this script?
-
tableName = {} function createTm(player, commandName, teamName) local acc = getPlayerAccount(player) if isGuestAccount ( acc ) then outputChatBox("You must login first !",player,255,0,0) return end if getAccountData(acc,"histeam") then outputChatBox("You already have team !",player,255,0,0) return end for k,v in ipairs(tableName) do if v == teamName then outputChatBox("Team exists.", player, 255, 0, 0) return end end if not teamName then outputChatBox("Please Write valid name usage /ct teamname !",player,255,0,0) return end if acc and not isGuestAccount ( acc ) and not getAccountData(acc,"histeam") and teamName then Team = createTeam(teamName) if Team then outputChatBox("Team created successfully !",player,0,255,0) table.insert(tableName, teamName) setAccountData(acc,"histeam",getTeamName ( Team )) setPlayerTeam(player,Team) else outputChatBox("Failed to create team !",player,255,0,0) end end end addCommandHandler("ct",createTm)
-
function onLogin ( player, user, pass ) local account = getAccount ( user, pass ) if ( account ~= false ) then logIn ( player, account, pass ) triggerClientEvent ( "hideLoginWindow", getRootElement()) else outputChatBox ( "Login error!", player, 255, 255, 0 ) end end addEvent( "onLogin", true ) addEventHandler( "onLogin", getRootElement(), onLogin ) function onRegister ( player, user, pass ) local account = getAccount ( user, pass ) if ( account == false ) then account = addAccount ( user, pass ) logIn ( player, account, pass ) triggerClientEvent ( "hideLoginWindow", getRootElement()) else outputChatBox ( "Register/Login error!", player, 255, 255, 0 ) end end addEvent( "onRegister", true ) addEventHandler( "onRegister", getRootElement(), onRegister )
-
Please go to your cPanel of Delux host and open a ticket there. We won't be able to help you like this. It maybe because of over-heating or RAM getting finished.
-
smoothMoveCamera https://wiki.multitheftauto.com/wiki/SmoothMoveCamera