Jump to content

TAPL

Retired Staff
  • Posts

    7,337
  • Joined

  • Days Won

    11

Everything posted by TAPL

  1. -- Client Side -- local eTeams = { ["Police"] = true, ["Swat"] = true, ["FBI"] = true, ["Military"] = true } addEventHandler("onClientPlayerWeaponFire", root, function(weapon, _, _, _, _, _, hitElement) if (hitElement) and (getElementType(hitElement) == "player") and (weapon == 23) then local Team = getPlayerTeam(source) local TeamName = Team and getTeamName(Team) or "" if (eTeams[TeamName]) then outputChatBox("You have tazed "..getPlayerName(hitElement), 255, 0, 0) triggerServerEvent("onShot", localPlayer, hitElement) end end end) -- Server Side -- local time = 1 addEvent("onShot", true) addEventHandler("onShot", root, function(hitElement) setElementFrozen(hitElement, true) setPedAnimation(hitElement, "ped", "KO_shot_stom") setTimer(setElementFrozen, time*3000, 1, hitElement, false) setTimer(setPedAnimation, time*3000, 1, hitElement) end)
  2. mediafire? No you can't. You can get a free web hosting from http://www.000webhost.com it's much better.
  3. -- Server Side -- addEventHandler("onPlayerWasted", root, function() setElementAlpha(source, 0) end) -- Server Side -- addEventHandler("onPlayerSpawn", root, function() setElementAlpha(source, 255) end)
  4. At Server Side line 13 remove the number "2" function RespawnGUI2(hitElement) it should be function RespawnGUI(hitElement)
  5. Post your code.
  6. What about telling us what you're trying to do? and what the script currently does and what is the wrong thing with it?
  7. That doesn't help me at all. @Castillo and Cadu12 thanks for the help, much appreciated. How it could help you if you didn't even click on it and read what it does? http://www.lua.org/manual/5.1/manual.html#pdf-string.find
  8. addEvent("Pro",true) function Pro() if getPlayerMoney(source) >= 50 then takePlayerMoney (source,50) outputChatBox("* -$50",source,0,255,0,true) else outputChatBox("* you Don't have enough Money !",source,255,0,0,true) end end addEventHandler("Pro",getRootElement(),Pro)
  9. مافي له آيد ذا بيصنع صوره معينه كـ بلب icon.png أسم الصوره
  10. عربي؟ ما فهمت ولا شي أشرح أيش الي تبي تسويه بالضبط و تأكد أن حنا ما نقرأ الي بمخك حاول توصل المعلومه بطريقة صحيحه
  11. وشو التيبل http://lua-users.org/wiki/TablesTutorial
  12. Also fileDelete need the filePath in string.
  13. You can do it with onClientPlayerWeaponFire or onPlayerDamage or onClientPlayerDamage
  14. Your parameter is called player but you have it thePlayer at outputChatBox.
  15. This still wrong.
  16. And i guess that you was meant this: if ( user == "Alen" ) then To be: if ( user ~= "Alen" ) then
  17. TAPL

    Help ...

    1- There no need for multiple posts, use edit button. 2- You need to stop resource "play" or edit it. Btw, read the note at the wiki: https://wiki.multitheftauto.com/wiki/SpawnPlayer
  18. This is old, Newer version can be downloaded from here http://code.google.com/p/mtasa-resources/downloads/list
  19. يـآخخي وش ببلآإك أإنت ، تتهتم أإلناإس بـ بأإطل وربي أإني مووو سوسو .. !! يـآليت تصصدق بسس وبلاإش ، تتهم ، أإلناإس ولو ماإ تصصدق ، قل لأإي مششرف يلاإحظ ألـ ip ahmedfef <~
  20. destroyElement أنتو تسون له بس ما حذفتونه من التيبل
  21. setPedAimTarget
  22. TAPL

    Help ...

    Event: "onPlayerWasted" getPlayerTeam getTeamName spawnPlayer
  23. missiontimer تقدر تستخدم مود يجي مع مودات أم تي اي الأصلية^ https://wiki.multitheftauto.com/index.php?title=Resource:Missiontimer
×
×
  • Create New...