Jump to content

xXGhostXx

Members
  • Posts

    257
  • Joined

  • Last visited

Everything posted by xXGhostXx

  1. Hello guys . How to make script for set color name on player chat ! /setcolorname <PlayerName> <Hex> And save player coloros in account data like money - skin or ...
  2. This is your help ? @Dimos7 @iMr.WiFi..! Help me !
  3. Hi guys ! How to add event handler onPlayerRegister ?!
  4. You can make for me ? Please ?
  5. Hi guys . How to make script for respawn vehicle by command !
  6. How to set left click on vehicle for get outputChatBox Thanks ! i Liked You
  7. Hi guys ! What is problem ? I want show plate vehicle on click vehicle ! function showpelak () local noclick local carSelect outputChatBox("#f2e345[Vehicle]: "..getVehiclePlateText ( carSelect ), 50, 164, 29, true) noclick = nil end addEventHandler("OnClientClick", showpelak) Please answer me problem ! @iMr.WiFi..!
  8. function findPlayer( partofname ) local player = getPlayerFromName ( tostring(partofname) ) if player then return player end for _, player in pairs( getElementsByType 'player' ) do if string.find ( string.gsub ( getPlayerName ( player ):lower( ), "#%x%x%x%x%x%x", "" ), partofname:lower( ), 1, true ) then return player end end end function isPlayerOnGroup ( thePlayer ) local account = getPlayerAccount ( thePlayer ) local inGroup = false for _, group in ipairs ( { "Console", "Admin", "Moderator", "SuperModerator" } ) do if isObjectInACLGroup ( "user.".. getAccountName ( account ), aclGetGroup ( group ) ) then inGroup = true break end end return inGroup end
  9. How to add distance for example : Syntax: /freezecar <Distance> or /freezecar 100 Freezed vehicle up to 100 meters distance ? function freezeAllVeh ( thePlayer, cmd ) local playerVehicle = getPlayerOccupiedVehicle ( thePlayer ) local currentFreezeStatus = isElementFrozen ( playerVehicle ) for index, AllPlayers in ipairs(getElementsByType("player")) do if getPedOccupiedVehicle ( thePlayer ) then setElementFrozen ( AllPlayers, playerVehicle, true ) end end end addCommandHandler("fcarall", freezeAllVeh) What is problem ? I want freeze all vehicle !
  10. Hi All Please give me functions for freeze vehicle !
  11. Thanks ! What is problem in my code ? function respawnPlayer ( thePlayer, cmd, player, Name ) if not ( isPlayerOnGroup ( thePlayer ) ) then outputChatBox("#ff0000[Error]: #ffffffShoma Dastresi Be In Dastoor Nadarid!", thePlayer, 255, 255, 255, true) return false end if player == nil then outputChatBox("#00ff00Bezan: /respawn <PartOfName>", thePlayer, 255, 255, 255, true) return false end if not findPlayer(player) then outputChatBox("#ff0000[Error]: #ffffffPlayer Peyda Nashod!", thePlayer, 255, 255, 255, true) return false end local taraf = findPlayer(player) local skin = getElementModel(player) local aname = getPlayerName( thePlayer ) local esmesh = getPlayerName(taraf) spawnPlayer( taraf , 1286.17578125, -1329.16015625, 13.55211353302 , 90 ) setElementModel(player, skin) outputChatBox("#ff0000[Done]: #ffffffShoma "..esmesh.." Ra Respawn Kardid!", thePlayer ,255, 255, 255, true) for _, player in ipairs ( getElementsByType ( "player" ) ) do if ( isPlayerOnGroup ( player ) ) then outputChatBox ( "#ff0000[ADM-Warn]: #ffffff"..aname.." Player #FFA500"..esmesh.." #ffffffRa #FFA500Respawn #ffffffKard!", player,255,255,255,true ) end end outputChatBox("#ffffffShoma Tavasote "..aname.." Respawn Shodid!", taraf, 255, 255, 255, true) end addCommandHandler("respawn", respawnPlayer)
  12. Hi guys How to make script for show player wanted list ? Please answer me !
  13. Thanks I fixed problem with you !
  14. What your email address for send movie script !
  15. Vehicle not spawned ! Not worked
×
×
  • Create New...