Jumper_Mych Posted January 8, 2011 Share Posted January 8, 2011 Hello I have a request to you, can you help me. Cop sit in the patrol car, and can wrote /warp (nick) to crime can teleport to patrol car police. Link to comment
Castillo Posted January 9, 2011 Share Posted January 9, 2011 We don't accept request, you should at least try something first. Link to comment
Scooby Posted January 9, 2011 Share Posted January 9, 2011 https://wiki.multitheftauto.com/wiki/AddCommandHandler https://wiki.multitheftauto.com/wiki/Get ... antedLevel https://wiki.multitheftauto.com/wiki/Character_Skins https://wiki.multitheftauto.com/wiki/GetPlayerSkin https://wiki.multitheftauto.com/wiki/GetPlayerTeam https://wiki.multitheftauto.com/wiki/Vehicle_IDs https://wiki.multitheftauto.com/wiki/IsPedInVehicle https://wiki.multitheftauto.com/wiki/WarpPedIntoVehicle not sure if u want to warp the criminal to you, or you and the car to the criminal.... im sure most of what u need can be found on the above links. Link to comment
Jumper_Mych Posted January 9, 2011 Author Share Posted January 9, 2011 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 ) Link to comment
Castillo Posted January 9, 2011 Share Posted January 9, 2011 try this, vehicle = { [596]=true, [599]=true } function bwarp ( thePlayer, command, who ) local veh = getPedOccupiedVehicle(thePlayer) if veh then model = getElementModel(veh) if vehicle[tonumber(model)] then local aeg = getPlayerFromName ( who ) isPedInVehicle ( thePlayer ) warpPedIntoVehicle ( aeg, veh ) outputChatBox(getPlayerName(aeg).." is now at your vehicle!",thePlayer,0,255,0) end end end addCommandHandler ( "warp", bwarp ) Link to comment
Jumper_Mych Posted January 14, 2011 Author Share Posted January 14, 2011 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 Link to comment
Castillo Posted January 14, 2011 Share Posted January 14, 2011 I don't understand.. maybe use a better translator? Link to comment
Jumper_Mych Posted January 14, 2011 Author Share Posted January 14, 2011 try this, vehicle = { [596]=true, [599]=true } function bwarp ( thePlayer, command, who ) local veh = getPedOccupiedVehicle(thePlayer) if veh then model = getElementModel(veh) if vehicle[tonumber(model)] then local aeg = getPlayerFromName ( who ) isPedInVehicle ( thePlayer ) warpPedIntoVehicle ( aeg, veh ) outputChatBox(getPlayerName(aeg).." is now at your vehicle!",thePlayer,0,255,0) end end end addCommandHandler ( "warp", bwarp ) 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." Link to comment
Castillo Posted January 14, 2011 Share Posted January 14, 2011 try this then, vehicle = { [596]=true, [599]=true } function bwarp ( thePlayer, command, who ) local veh = getPedOccupiedVehicle(thePlayer) if veh then model = getElementModel(veh) if vehicle[tonumber(model)] then local aeg = getPlayerFromName ( who ) isPedInVehicle ( thePlayer ) warpPedIntoVehicle ( aeg, veh, 3 ) outputChatBox(getPlayerName(aeg).." is now at your vehicle!",thePlayer,0,255,0) end end end addCommandHandler ( "warp", bwarp ) Link to comment
Jumper_Mych Posted January 14, 2011 Author Share Posted January 14, 2011 try this then, vehicle = { [596]=true, [599]=true } function bwarp ( thePlayer, command, who ) local veh = getPedOccupiedVehicle(thePlayer) if veh then model = getElementModel(veh) if vehicle[tonumber(model)] then local aeg = getPlayerFromName ( who ) isPedInVehicle ( thePlayer ) warpPedIntoVehicle ( aeg, veh, 3 ) outputChatBox(getPlayerName(aeg).." is now at your vehicle!",thePlayer,0,255,0) end end end addCommandHandler ( "warp", bwarp ) Thanks you! Link to comment
Castillo Posted January 14, 2011 Share Posted January 14, 2011 Off-Topic: Could you make your Signature smaller please? its kinda big for just a text Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now