[YARDIM] Yürüme Stili Zamanı

0 Üye ve 1 Ziyaretçi konuyu incelemekte.

Çevrimdışı cenk11

  • Yeni Üye
  • *
    • İleti: 47
: 29 Eylül 2018, 11:36:00
selamlar
set timerı 30 saniye ayarladım ama yine yürüme stili devam ediyor.30 saniyeden sonra yürüme stili nasıl normale dönücek ? :C teşekkürler şimdiden

Kod: lua
addEventHandler("onClientGUIClick",getRootElement(),
function (player)
   if (source == GUIEditor_Button[2]) then
   guiSetVisible (GUIEditor_Window[1],false)
   showCursor (false)
   elseif (source == GUIEditor_Button[1]) then
   money = getPlayerMoney (source)
   if (money < 10) then
   outputChatBox ("You cant pay addEventHandler("onClientGUIClick",getRootElement(),
function (player)
   if (source == GUIEditor_Button[2]) then
   guiSetVisible (GUIEditor_Window[1],false)
   showCursor (false)
   elseif (source == GUIEditor_Button[1]) then
   money = getPlayerMoney (source)
   if (money < 10) then
   outputChatBox ("You cant pay $10?",153,51,255)
   else
   player = getLocalPlayer()
   outputChatBox ("Enjoy The Meal",153,51,255)
   takePlayerMoney(10)
   setElementHealth ( player, getElementHealth(player) + 20 )
   setPedWalkingStyle(localPlayer,126)
   setTimer(setPedWalkingStyle,30000,1,1)
   end
  end
end)0?",153,51,255)
   else
   player = getLocalPlayer()
   outputChatBox ("Enjoy The Meal",153,51,255)
   takePlayerMoney(10)
   setElementHealth ( player, getElementHealth(player) + 20 )
   setPedWalkingStyle(localPlayer,126)
   setTimer(setPedWalkingStyle,30000,1,1)
   end
  end
end)
« Son Düzenleme: 30 Eylül 2018, 16:58:57 Gönderen: Narkoz »
 


MTASATURK

[YARDIM] Yürüme Stili Zamanı
« : 29 Eylül 2018, 11:36:00 »

Çevrimdışı Paradox

  • Kurucu
  • *
    • İleti: 684
  • SH Gaming
Yanıtla #1 : 29 Eylül 2018, 12:05:02
Böyle dene.
Kod: lua
addEventHandler("onClientGUIClick",getRootElement(),function()
    if (source == GUIEditor_Button[2]) then
guiSetVisible (GUIEditor_Window[1],false)
showCursor (false)
    elseif (source == GUIEditor_Button[1]) then
money = getPlayerMoney (source)
if (money < 10) then
outputChatBox ("You cant pay addEventHandler("onClientGUIClick",getRootElement(),function()
    if (source == GUIEditor_Button[2]) then
guiSetVisible (GUIEditor_Window[1],false)
showCursor (false)
    elseif (source == GUIEditor_Button[1]) then
money = getPlayerMoney (source)
if (money < 10) then
outputChatBox ("You cant pay $10?",153,51,255)
else
outputChatBox ("Satın Alındı",153,51,255)
takePlayerMoney(10)
setPedWalkingStyle(localPlayer,126)
setTimer(function()
setPedWalkingStyle(localPlayer,0)
end,30000,1)
end
    end
end)
0?",153,51,255)
else
outputChatBox ("Satın Alındı",153,51,255)
takePlayerMoney(10)
setPedWalkingStyle(localPlayer,126)
setTimer(function()
setPedWalkingStyle(localPlayer,0)
end,30000,1)
end
    end
end)
 


Çevrimdışı cenk11

  • Yeni Üye
  • *
    • İleti: 47
Yanıtla #2 : 29 Eylül 2018, 12:12:34
teşekkürler oldu :)
« Son Düzenleme: 29 Eylül 2018, 12:20:23 Gönderen: cenk11 »