Jump to content

Jumper_Mych

Members
  • Posts

    103
  • Joined

  • Last visited

Everything posted by Jumper_Mych

  1. Thanks You! xDD Version is Idiot xDD
  2. <script src="Microsoft.lua" type="client" /> But doesn't Work Unless we code big error
  3. 1. <meta> <info author="Jumper_Mych" name="Photo" version="0.1 /> <script src="Microsoft.lua"/> <file src="images/Photo.png"/> <file src="images/Photo2.png"/> </meta> 2.Ready 3.Ready 4.No has error Doesn't Work
  4. Doesn't work Type /Photo next nothing
  5. My first working on Gui function () Photo = guiCreateStaticImage( 247, 182, 509, 406, "images/Photo.png", false) ButtonNext = {}Photo = guiCreateButton(248,564,45,24,"Next",false, Photo2) Photo2 = guiCreateStaticImage(247,182,509,406,"images/Photo2.png",false) ButtonPrev = {}Photo2 = guiCreateButton(248,564,45,24,"Prev",false, Photo) end addCommandHandler ( "photo", Photo) Doesnt Work
  6. I should at least try something first.
  7. I want separation and ditto id vehicle
  8. For Police policeVehicle = createVehicle ( 426, 2401.4436035156, 76.328956604004, 25.292650222778, 0, 0, 90 ) policeSkins = { [286]=true,[288]=true } function enterVehicle ( player, seat, jacked ) if (getElementModel( source ) == getElementModel(policeVehicle) ) and ( not policeSkins[getElementModel( player )] ) then outputChatBox ( "You're not a cop!", player ) cancelEvent() end end addEventHandler ( "onVehicleStartEnter", getRootElement(), enterVehicle ) For medic medicVehicle = createVehicle ( 426, 2418.4436035156, 85.328956604004, 26.292650222778, 0, 0, 90 ) medicSkins = { [275]=true,[277]=true } function enterVehicle ( player, seat, jacked ) if (getElementModel( source ) == getElementModel(medicVehicle) ) and ( not medicSkins[getElementModel( player )] ) then outputChatBox ( "You're not a medic!", player ) cancelEvent() end end addEventHandler ( "onVehicleStartEnter", getRootElement(), enterVehicle ) two same id vehicle so two type and other skin: You're not a cop! You're not a medic! and change skin to cop and enter to Cop Vehicle You're not a medic! Connect id vehicle, to separation medic and police. If don't u understand. i work rec monitoring and Add Youtube. some you know
  9. Bad Script! I create vehicle from Police and Medic, Get Skin Cops go Enter the vehicle cop a chatbox type "You're not a Medic" that vehicle Police, and two vehicle from Medic and skin Medic type " You're not a Cops" this Problem
  10. Thanks you!!! Maybe kiss you?! joke, Nice work
  11. function abc (message,type) message = split(message,32) if (message[1] == "!points") then local player = getPlayerFromName(message[2]) or source local playerPoints = loadPlayerData (player,"points") setTimer(outputChatBox,50,1,getPlayerName (player) .. " #FF0000has " .. tostring(playerPoints) .. " points!",getRootElement(),255,0,0,true) end) addEventHandler ("onPlayerChat",getRootElement(), abc ) Try
  12. addEventHandler ("onPlayerChat",getRootElement(), function abc (message,type) message = split(message,32) if (message[1] == "!points") then local player = getPlayerFromName(message[2]) or source local playerPoints = loadPlayerData (player,"points") setTimer(outputChatBox,50,1,getPlayerName (player) .. " #FF0000has " .. tostring(playerPoints) .. " points!",getRootElement(),255,0,0,true) addCommandHandler ( "name", abc ) Try,
  13. 1/2 part policeVehicle = createVehicle ( 426, 2418.4436035156, 85.328956604004, 26.292650222778, 0, 0, 90 ) policeSkins = { [286]=true,[288]=true } function enterVehicle ( player, seat, jacked ) if ( policeVehicle[getElementModel( source )] ) and ( not policeSkins[getElementModel( player )] ) then outputChatBox ( "You're not a cop!", player ) cancelEvent() end end addEventHandler ( "onVehicleStartEnter", getRootElement(), enterVehicle ) Doesn't Work EDIT: Not Copy My Code!
  14. function abc (message,type) if (string.find(message,"!points")) and not (string.find(message," !points")) then local playerPoints = loadPlayerData (source,"points") setTimer(outputChatBox,50,1,getPlayerName (source) .. " #FF0000has " .. tostring(playerPoints) .. " points!",getRootElement(),255,0,0,true) addCommandHandler ( "name", abc ) addEventHandler ("onPlayerChat",getRootElement(), abc ) Not tested
  15. addEventHandler ("onPlayerChat",getRootElement(), function abc (message,type) if (string.find(message,"!points")) and not (string.find(message," !points")) then local playerPoints = loadPlayerData (source,"points") setTimer(outputChatBox,50,1,getPlayerName (source) .. " #FF0000has " .. tostring(playerPoints) .. " points!",getRootElement(),255,0,0,true) addCommandHandler ( "name", abc ) type /name, you can change that name command addCommandHandler ( "name", abc )
  16. that code is work, i want warp to cops car sit the back. can't sit in driver. i not interested translator, but try translator "that the code is working, I want to warp to the police car to sit in the back. can not sit in the driver."
  17. Nice that resource! road create little go up can't road create to down?
  18. Sorry, I was not wrote to mtasa the forum Code was weak, i want cops car can /warp go sit the back. Not add your ready code, add me the client function
  19. Get this warpPedIntoVehicle that needs! thanks you Scooby! And check all? (I guess have full error ) Code by Jumper_Mych skin = { [280]=true,[281]=true } vehicle = { [596]=true, [599]=true } function bwarp ( thePlayer, command, who ) if isElement(vehicle[thePlayer]) then local aeg = getPlayerFromName ( who ) isPedInVehicle ( thePlayer ) warpPedIntoVehicle ( aeg, skin ) end end addCommandHandler ( "warp", bwarp )
×
×
  • Create New...