Jump to content

Evil-Cod3r

Members
  • Posts

    370
  • Joined

  • Last visited

Everything posted by Evil-Cod3r

  1. Evil-Cod3r

    Help

    debugscript 3/ errors ??
  2. function stopDamage ( attacker, weapon, bodypart ) if ( weapon == 3 or weapon == 22 ) then cancelEvent() end end addEventHandler ( "onClientPlayerDamage", getLocalPlayer(), stopDamage)
  3. yes that is what i want now i well Make a tabel for the skins and the unallowed things Thx Kenix
  4. ههه Jr10 تتعلم عربي شوي شوي احييك على هاذا لول
  5. no i mean if i some one replacethe orgnal skin 45 or any skin with smaller skin or not orjnal how to check if it not orjnal then kick player ("Remove the Bug skin and put the orjnal to Play")
  6. Hi all some Players replace there skins with skin bug dont get damage what is the functions and event that check if the skin have changes then the normal skin ?
  7. try this function setPlayerAnim(pol, crim) local wanted = getPlayerWantedLevel(source) --- source or killer i dont know what you need local weapon = getWeaponNameFromID (23) local playerTeam = getPlayerTeam(pol) if (playerTeam == "Police") then if (wanted(crim) > 1 and weapon(pol)) then setTimer (3000, 1, setPedAnimation(crim, "BAR", "BARman_idle")) end end end addEventHandler("onPlayerDamage", getRootElement(), setPlayerAnim)
  8. Thank You Tapl Now Your in the Crdits
  9. Thank You Tapl now i want 1 thing i need to add anti-spam in chat for 30 sec then the Players can use it again ! addEvent("showMoney", true ) --- the event addEventHandler("showMoney", root, --- the event function() outputChatBox(getPlayerName(source).." Has Money is $"..getPlayerMoney(source).."!",root,255,255,0) --- getPlayer Name and Money then output it to the chat ! else outputChatBox("You Have To Wait 30 sec for Using this Command again !",source,255,0,0) end) local Timer = {30} GUIEditor_Window = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(501,267,593,287,"Show My Money By Dev-PoinT",false) guiWindowSetMovable(GUIEditor_Window[1],false) guiWindowSetSizable(GUIEditor_Window[1],false) GUIEditor_Image[1] = guiCreateStaticImage(239,17,97,112,"images/money.png",false,GUIEditor_Window[1]) GUIEditor_Image[2] = guiCreateStaticImage(109,165,136,98,"images/yes.png",false,GUIEditor_Window[1]) GUIEditor_Image[3] = guiCreateStaticImage(385,159,147,96,"images/no.png",false,GUIEditor_Window[1]) addEventHandler('onClientGUIClick',root, ---- the Gui event for if you click the imgaes then ... function() if source == GUIEditor_Image[2] then triggerServerEvent ("showMoney", localPlayer) --- trigger it to server side elseif source == GUIEditor_Image[3] then guiSetVisible(GUIEditor_Window[1],false) end end )
  10. Hi all iam not good in Gui script can i get help with this ? local Money = getPlayerMoney(source) local Name = getPlayerName(source) GUIEditor_Window = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(501,267,593,287,"Show My Money By Dev-PoinT",false) guiWindowSetMovable(GUIEditor_Window[1],false) guiWindowSetSizable(GUIEditor_Window[1],false) GUIEditor_Image[1] = guiCreateStaticImage(239,17,97,112,"images/money.png",false,GUIEditor_Window[1]) GUIEditor_Image[2] = guiCreateStaticImage(109,165,136,98,"images/yes.png",false,GUIEditor_Window[1]) GUIEditor_Image[3] = guiCreateStaticImage(385,159,147,96,"images/no.png",false,GUIEditor_Window[1]) addEventHandler('onClientGUIClick',root, function() if source == GUIEditor_Image[2] then outputChatBox(Name .. "Has Money is .. Money",255,255,0) elseif source == GUIEditor_Image[3] then guiSetVisible(GUIEditor_Window[1],false) end end )
  11. but its say guiGetSize() returns x, y Size of gui element not Height and Width ?
  12. oh sorry for that Man then you have to use guiGetSize for the Gui Element
  13. and dont you read ?? , Width and Height !
  14. Returns This returns two floats representing the player's screen resolution, width and height.
  15. lol soldsnake in BaseMode if you Join late the map is alredy played he want add himself to the map with a command like ("add") ... Name Has Been Add to the Map !
  16. local Height, Width = guiGetScreenSize()
  17. Oh Thanks Man For That
  18. and what i pug if source = yes.png or what ?
  19. and i have images Yes.png and no.png how to replace the buttons with images yes show his money no hide the window just this
  20. Evil-Cod3r

    Question

    Hi if i Made a Window and Button Name [show Your Money ] how if i Select that Button i want show Small windoe Like this [Are You Sure Want To Show Your Money ] ? how to do that give me the functions and events so i can make it thank you .
  21. Your are Right but iam arabic my english lang is 50 % i wish thers is some arabic wiki
  22. kimmis9 just these? its hard for me can i get some help with it ?
×
×
  • Create New...