Jump to content

Cadu12

Retired Staff
  • Posts

    827
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Cadu12

  1. Cadu12

    checkWeapon

    Try "if not tonumber(getPedTotalAmmo ( player, v )) >= 1 then"
  2. Cadu12

    checkWeapon

    Change to "if not getPedTotalAmmo ( player, v ) >= 1 then" in your function.
  3. Cadu12

    checkWeapon

    function checkWeapon(player, cat) = checkWeapon(source, "Melee") function checkWeapon(player, cat, cat2) = checkWeapon(source, "Melee", "Primary") etc
  4. Cadu12

    checkWeapon

    checkWeapon(source, "Melee") Im not sure
  5. Cadu12

    Question

    There are examples...
  6. Cadu12

    Question

    if\else\end https://wiki.multitheftauto.com/wiki/IsGuestAccount https://wiki.multitheftauto.com/wiki/GetPlayerAccount https://wiki.multitheftauto.com/wiki/SetAccountData https://wiki.multitheftauto.com/wiki/GetAccountData Or you use XML. serverside only, becuase anyone can editor in clientside for cheat https://wiki.multitheftauto.com/wiki/XmlDestroyNode https://wiki.multitheftauto.com/wiki/XmlCreateFile https://wiki.multitheftauto.com/wiki/XmlLoadFile https://wiki.multitheftauto.com/wiki/XmlNodeGetValue https://wiki.multitheftauto.com/wiki/XmlCreateChild
  7. Eh, we cant add caps? If players Caps Lock is on it makes string upper
  8. Hmmm doesnt work for Caps ? becuase login have caps and lowers
  9. Show me, thank you =D Here image for user panel: http://img26.imageshack.us/i/loginpanel.png/
  10. Text editor (no GUI) There is no event keyboard....
  11. function PlayerPressedKey() outputChatBox("You pressed!") end addEventHandler("onClientKey", getRootElement(), PlayerPressedKey) https://wiki.multitheftauto.com/wiki/OnClientKey This event doesnt work for me, i did debugscript 3 but nothing Im adding my own dxgui (login panel)
  12. https://wiki.multitheftauto.com/wiki/Mod ... QL#Windows I did read at all, you need create one folder "modules" in your deathmatch(server) Im agree Zango, needed libmysql.dll
  13. Solidsnake14, I tinhk, he wants make one script, MySQL sends text to websites
  14. addEventHandler("onResourceStart",getResourceRootElement(getThisResource()), getingPlayerBizPos)
  15. He did not give you anything and he is my friend, now I'll call him and he will post it
  16. There is lua wiki for string.gsub http://www.lua.org/pil/20.1.html Lua is your friend
  17. Try this function test( thePlayer, commandName ) local tag = "-%|TG|%-" local name = "-|TG|-Albinix" local subtag = string.gsub(tostring(name),tostring(tag),"") outputChatBox( tostring( subtag ) ) end addCommandHandler("test", test, false, false )
  18. Bad = {":O", "fuck"} function BadWords ( message, messageType ) local Findingdots = string.gsub(message, "([%s%_%*%+%?%.%(%)%[%]%{%}%\%/%|%^%$%-])", '') for i, Findingbad in ipairs(Bad) do if string.find( message, Findingbad) then setPlayerMuted(source, true) outputChatBox ( getPlayerName ( source ).." has mute bad words", getRootElement(), 255, 255, 0, true ) elseif string.find( Findingdots, Findingbad) then setPlayerMuted(source, true) outputChatBox ( getPlayerName ( source ).." has mute bad words", getRootElement(), 255, 255, 0, true ) end end end addEventHandler ( "onPlayerChat", getRootElement(), BadWords )
×
×
  • Create New...