Jump to content

iMr.3a[Z]eF

Members
  • Posts

    862
  • Joined

  • Last visited

Everything posted by iMr.3a[Z]eF

  1. Maybe it's from string.find, i'll find solution soon. EDIT: i solved it, hope it will works. ladies = { "bitch", } mans = { "gay" } function chatL ( msg ) for k,v in ipairs (ladies) do if string.find(msg,v) then cancelEvent( ) local pn = getPlayerName (source) outputChatBox(" " .. pn .. " : lady",0,255,0,true) end end end addEventHandler( "onPlayerChat", getRootElement(), chatL ) function chatM ( msg ) for k,v in ipairs (mans) do if string.find(msg,v) then cancelEvent( ) local pn = getPlayerName (source) outputChatBox(" " .. pn .. " : man",0,255,0,true) end end end addEventHandler( "onPlayerChat", getRootElement(), chatM )
  2. What's the debug says?
  3. function onResourceStartDoThis() local leadShader = createObject(8838,2948.1564941406,-3046.544921875,-10.287460327148,0,0,91.007263183594) local shipParts1 = createObject(5167,2954.525390625,-3013.8371582031,8.9695568084717,0,0,90) local shipParts2 = createObject(5160,2954.525390625,-3015.7006835938,8.9695568084717,0,0,90) local shipParts3 = createObject(5166,2954.5446777344,-3015.7026367188,8.9695568084717,0,0,90) local shipParts4 = createObject(5158,2946.6257324219,-3159.0061035156,15.628360748291,0,0,180) local shipParts5 = createObject(5155,2946.4465332031,-3135.0407714844,24.955896377563,0,0,90) local shipParts6 = createObject(5156,2946.4440917969,-3071.3764648438,14.663120269775,0,0,90) local shipParts7 = createObject(5154,2946.544921875,-3046.2358398438,19.418611526489,0,0,90) local shipParts8 = createObject(5157,2946.4467773438,-2962.5090332031,20.719650268555,0,0,90) attachElements(shipParts1,leadShader) attachElements(shipParts2,leadShader) attachElements(shipParts3,leadShader) attachElements(shipParts4,leadShader) attachElements(shipParts5,leadShader) attachElements(shipParts6,leadShader) attachElements(shipParts7,leadShader) attachElements(shipParts8,leadShader) end addEventHandler("onResourceStart",getResourceRootElement(getThisResource()),onResourceStartDoThis)
  4. Wait wait, try this i hope it'll work with you: local pName = getPlayerName(source) addEventHandler("onPlayerChat", getRootElement(), function(msg, msgType) if string.find(msg,"bitch") then cancelEvent() outputChatBox(pName..": Lady ",getRootElement(),255,0,0,true) elseif string.find(msg,"gay") then cancelEvent() outputChatBox(pName..": Man ",getRootElement(),255,0,0,true) end end )
  5. I don't know how to replace it, sorry. But i can cancel the bad word.
  6. Sure, show me the code. Words = {"bitch", "gay" } addEventHandler("onPlayerChat", getRootElement(), function(msg, msgType) for k,v in ipairs (Words) do if string.find(msg,v) then cancelEvent() pName = getPlayerName(source) outputChatBox("INFO: #ffffff[#00ff00 Console#ffffff ]#ff0000 set mute to #ffff00"..pName.." ",getRootElement(),255,0,0,true) setPlayerMuted(source, true) setTimer (function ( ) setPlayerMuted (source, false ) end, 300000,1, source ) end end end )
  7. As he said, use string.find
  8. You meant you want the pickup spin in circle?
  9. Right, but in this function getVehicleName you most write the vehicle in the first argument Ex: local vehicle = createVehicle(...) function FLY () local car = getVehicleName(vehicle) if car == "Turismo" then setWorldSpecialPropertyEnabled ( "aircars", true ) else outputChatBox("* Your vehicle isn't Turismo", localPlayer) end end addEventHandler("onClientResourceStart",getResourceRootElement(getThisResource()), FLY ) Or if no't specific Ex: local vehicle = getElementType("vehicle") function FLY () local car = getVehicleName(vehicle) if car == "Turismo" then setWorldSpecialPropertyEnabled ( "aircars", true ) else outputChatBox("* Your vehicle isn't Turismo", source) end end addEventHandler("onClientResourceStart",getResourceRootElement(getThisResource()), FLY )
  10. ok i'am sorry It's ok, now what is the problem with your codes?.
  11. If you use lua instead code, that we read it carefully.
  12. Where is the createVehicle?
  13. Use LUA syntax box please.
  14. giveWeapon -- to give a weapon setPedSkin or setPlayerSkin -- to set the ped or the player skin by ID
  15. giveWeapon setPedSkin or setPlayerSkin
  16. iMr.3a[Z]eF

    Problem!

    local LabelChaz = guiCreateLabel(0.22, 0.33, 0.59, 0.08, "Haz Modificado Tu Vehiculo!", true) guiSetFont(LabelChaz, "sa-gothic") guiLabelSetColor(LabelChaz, 11, 11, 160) guiSetVisible(labelChaz, false) function ChazShowLabel (hitElement) if hitElement == localPlayer then setTimer(guiSetVisible(labelChaz, true), 2000, 1) end end addEventHandler("onClientMarkerHit", marker, ChazShowLabel)
  17. That isn't what he wanted, i think he want to make that pig picture inside his server.
×
×
  • Create New...