Jump to content

iPrestege

Members
  • Posts

    10,056
  • Joined

  • Last visited

  • Days Won

    27

Everything posted by iPrestege

  1. iPrestege

    What is bad ?

    takeWeapon(player,38)
  2. Oh,Sorry my bad : Try this : -- Server -- function xxx(player) if ( source == Plane[player] ) then destroyElement(Plane[player]) triggerClientEvent(player,"Destroy",player) end end addEventHandler("onVehicleStartExit",getRootElement(),xxx) addEventHandler("onVehicleExit",getRootElement(),xxx)
  3. triggerServerEvent
  4. Debugscript 3 ?
  5. Are you sure it's server side? any errors?
  6. Read my above post .
  7. Client : addEvent("Destroy",true) addEventHandler("Destroy",getRootElement(), function() if ( marker[2] or marker[3] or marker[4] ) then destroyElement(marker[2]) destroyElement(marker[3]) destroyElement(marker[4]) end end ) Server : function xxx(player) if ( source == Plane[source] ) then destroyElement(Plane[source]) triggerClientEvent(player,"Destroy",player) end end addEventHandler("onVehicleStartExit",getRootElement(),xxx) addEventHandler("onVehicleExit",getRootElement(),xxx)
  8. givePlayerMoney ( player, 100 )
  9. Create a new function and destroy All elements .
  10. You can use : triggerClientEvent -- and destroyElement -- on the server side to destroy the vehicle !
  11. What do you mean ? It is server side events ! I mean you said to ise "onVehicleExit" or "Client" Right? It's better to use it server to check the "Plane" .
  12. No he should use it on the server side only and i don't understand him about exit : P i was thinking he mean wasted or or etc .
  13. Use : setElementData getElementData And what you mean by exit when the player wasted or ?
  14. الله يعافيكـ و نسيت اقولكـ لية استخدمها توني اركز ذذ احب انهي الشيء بـ السرعه وتلاحظ اني ماستخدمت else الا عشان ينقل الاعب بـ السيارهـ او بدون : )
  15. يعني اذا ماكان بـ قروب الادمن يرجع للشات ويوقف خلاص .. فهمت ..
  16. Wow..Great Job .
  17. حياكـ الله ..
  18. Oh i see i know what's the problem now : Try it server side : Plane = {} addEvent("onPlayerTake",true) addEventHandler("onPlayerTake",getRootElement(), function( ) Plane[source] = createVehicle( 513 , 2070.1633300781 , -2493.3559570313 , 13.523823738098 ) if ( Plane[source] ) then warpPedIntoVehicle ( source,Plane[source] ) setCameraTarget( source , source ) end end ) addEvent("Done",true) addEventHandler("Done",getRootElement(), function( ) if ( Plane[source] ) then destroyElement(Plane[source]) givePlayerMoney(source,13000) outputChatBox ( "Misson Done And You Now Has Been Give 13000$", source, 255, 0, 0, true ) end end )
  19. There's no variable with "marker[2]" To destroy it!
  20. مايحتاج مسوي تحقق if ( vehicle ) > ذذ
  21. You want to destroy the marker or the vehicle and please post the line you have the problem in it .
  22. Any errors debugscript 3?
  23. local Marker = createMarker( x, y, z, "type", size, 0, 0, 0, 0 ) addEventHandler("onMarkerHit",Marker, function ( player ) if ( getElementType ( player ) == ( "player" ) ) then if not ( isObjectInACLGroup ("user."..getAccountName ( getPlayerAccount ( player ) ), aclGetGroup ( "Admin" ) ) ) then return outputChatBox("You Moust Be in Group Admin !",player,255,0,0) end local vehicle = getPedOccupiedVehicle ( player ) if ( vehicle ) then setElementPosition ( vehicle , x,y,z ) outputChatBox("* Done",player) else setElementPosition ( player , x,y,z ) outputChatBox("* Done",player) end end end )
  24. I Can't understand you you're English is so bad sorry but where's the problem now? Which line?
  25. http://www.gta-arabs.com/gt/showthread.php?t=52789&page=14&p=413227#post413227
×
×
  • Create New...