Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: bugują
1. skrypty mi się bugują
dzie? dobry tak jak w temacie mam problem i? kiedy pisze komende np. /siedzisz anuluje mi si? przez skrypt chatanimation wie kto? co trzeba zrobi? ?eby dzia?a?o to poprawnie
C_side
Kod:


gChatting = false

function chatCheckPulse()
local chatState = isChatBoxInputActive() or isConsoleActive()

if chatState ~= gChatting then
if chatState then
triggerServerEvent("playerChatting", getLocalPlayer())
else
triggerServerEvent("playerNotChatting", getLocalPlayer())
end
gChatting = chatState
end
setTimer( chatCheckPulse, 250, 1)
end
addEventHandler ( "onClientResourceStart", getRootElement(), chatCheckPulse )
addEventHandler ( "onClientPlayerJoin", getRootElement(), chatCheckPulse )



S_side
Kod:


function playerChatting()
setPedAnimation(source, "ped", "IDLE_chat")
end
addEvent("playerChatting", true )
addEventHandler("playerChatting", getRootElement(), playerChatting)


function onPlayerQuit()
setPedAnimation(source)
end
addEvent("playerNotChatting", true )
addEventHandler("playerNotChatting", getRootElement(), playerNotChatting)

addEventHandler ("onPlayerQuit", getRootElement(), onPlayerQuit )


za pomoc sktawiam piwo i respekt