TheMaysTRo Posted August 2, 2014 Posted August 2, 2014 Hello I created a jail ystem for Killing in sf . but when someone reconnect his time will not continue so he will stuck in the jail . any idea how to save his time so when he login again he will find his self in jail with his time . ? maybe a save by serial or ip ? anyway here is my code : function player_Wasted ( ammo, attacker, weapon, bodypart ) --jail the killer if ( attacker ) then if ( getElementType ( attacker ) == "player" ) then if isElementWithinColShape (attacker,tempCol) then setElementInterior ( attacker, 6 ) setElementPosition (attacker, 265.21185302734, 77.63591003418, 1001.0390625) toggleControl(attacker,"fire",false) setTimer ( setElementInterior ,120000,1, attacker, 0 ) -- let him go setTimer ( setElementPosition, 120000, 1, attacker, -1572.1206054688,662.33032226563,7.1875) setTimer (toggleControl,120000,1,attacker,"fire",true) outputChatBox ("#00D5FF["..getPlayerName(attacker).."] #FF0000Has Been Jailed For Killing in SF (2minutes) ",client,255,0,0,true) end end end end addEventHandler ( "onPlayerWasted", getRootElement(), player_Wasted )
FuriouZ Posted August 2, 2014 Posted August 2, 2014 SetElementData GetElementData OnPlayerLogin OnPlayerLogout OnPlayerQuit
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