Jump to content

TroyBoy

Members
  • Posts

    63
  • Joined

  • Last visited

Everything posted by TroyBoy

  1. so how can i do that the timer will be the time of what the player write in the game i mean the player write he will be muted for 10 seconds and the timer will be set for 10 seconds and after this he will be unmuted? oh and i have problem with this command: addCommandHandler ( "jetpack", function () local playerTeam = getPlayerTeam ( source ) if not playerTeam then return end local name = getTeamName ( playerTeam ) if name == "Owner" or name == "Admin" then local px, py, pz = getElementPosition ( source ) createPickup ( px, py, pz, "3", "370", "30000" ) end end ) it dosent create a jetpack
  2. ty and can you answer my second question and can i set a timer to a mute
  3. ok and can i create a few spawns that when player dies he go to a random spawn of all the spawn i mean to do a random spawns can i do this ?
  4. there is a function to set a skin model by the model the player wright in the game?
  5. TroyBoy

    spawn timer

    how can i do that only after 2 seconds when i killed i will get spawn
  6. TroyBoy

    cant enter servers

    its downgrade my mta
  7. TroyBoy

    cant enter servers

    i have mta sa 1.3 and when i try to get in race server or the download stuck and then connection lost or i cant see a lot of servers help please
  8. i have problem with this command: addCommandHandler ( "jetpack", function ( theplayer ) local playerTeam = getPlayerTeam ( source ) if (not playerTeam) then return end local name = getTeamName ( playerTeam ) if (name == "Owner" or name == "Admin") then local px, py, pz = getElementPosition ( source ) createPickup ( px, py, pz, "3", "370", "30000" ) end end ) when i do this command its dont do nothing and if you can do this command for the only one that do this command can take and see this jetpack and not others ty
  9. ty and when i debug with this command: addCommandHandler ( "nos", function ( thePlayer, commandName, id ) if ( isPedInVehicle ( thePlayer ) ) then local id = tonumber ( id ) local theVehicle = getPedOccupiedVehicle ( thePlayer ) local success = addVehicleUpgrade ( theVehicle, "1010" ) local playerTeam = getPlayerTeam ( player ) if playerTeam then local name = getTeamName ( playerTeam ) if name == "Owner" or name == "Admin" then if ( success ) then outputConsole ( getVehicleUpgradeSlotName ( id ) .. " upgrade added.", thePlayer ) else outputConsole ( "Failed to add upgrade.", thePlayer ) end else outputConsole ( "You must be in a vehicle!", thePlayer ) end end end ) its sais to me that there is unxepted symbol near the last ) why?
  10. oh and when i do the command its not spawn me and i have the spawnx and the other on start i set them ok: addCommandHandler ( "sm", function (totalAmmo, killer, killerWeapon, bodypart) spawnPlayer(source, spawnX, spawnY, spawnZ) end )
  11. OK and i have problem with this function: addCommandHandler ( "vr", function ( theplayer, thevehicle ) if ( isPedInVehicle ( thePlayer ) ) then fixVehicle ( theVehicle ) end and make it to the ownerteam and adminteam please
  12. look when i try to do this command to only two teams it give me an error with the first if: addCommandHandler ( "addupgrade", function ( thePlayer, commandName, id ) if ( isPedInVehicle ( thePlayer ) ) then local id = tonumber ( id ) local theVehicle = getPedOccupiedVehicle ( thePlayer ) local success = addVehicleUpgrade ( theVehicle, id ) local playerTeam = getPlayerTeam ( player ) if ( success ) then outputConsole ( getVehicleUpgradeSlotName ( id ) .. " upgrade added.", thePlayer ) else outputConsole ( "Failed to add upgrade.", thePlayer ) end else outputConsole ( "You must be in a vehicle!", thePlayer ) end end
  13. TroyBoy

    team set

    i fixed it but ty
  14. TroyBoy

    team set

    how can i do that if the player TroyBoy connect he will be in the OwnerTeam Team
  15. i did a command to put player in team but when i disconnect and connect i am not in this team
  16. HOW CAN I do that when i assaign player to team when he will quit he will be save in the team and when he will connect again he still will be in the team
  17. how can i do the when a player enter the game it will send to all this message playername has connected to the game
  18. where it is showed i read this induruction and didnt find
  19. how can i do that only if te player do /login and his name and right pass only then he will be able to do commands and move in the game? and to select is skin when he login
  20. and can you do this 2 commands only to admin and owner please: addCommandHandler( 'givemoney', function( source,_,player,amount ) local find = findPlayer( player ) if find then if amount then givePlayerMoney( find,tonumber( amount ) ) outputChatBox( '[givemoney]:You transfer $'..amount..' to '..getPlayerName( find ),source,255,0,0 ) else outputChatBox( '[givemoney]:/givemoney [playername][amount]!',source,255,0,0 ) end else outputChatBox( '[givemoney]:Player not found!',source,255,0,0 ) end end ) function consoleGiveCash ( thePlayer, command, amount ) --when the givecash command is called givePlayerMoney ( thePlayer, amount ) --give the player money according to the amount end addCommandHandler ( "givecash", consoleGiveCash ) --add a handler function for the command "givecash" addCommandHandler( 'cv', function( player,_,id_name ) local x,y,z = getElementPosition( player ) local model = getVehicleModelFromName( id_name ) if not model then model = tonumber( id_name ) end if createVehicle( model,x+1,y,z ) then outputChatBox( 'Success created: '..tostring( getVehicleNameFromModel( model ) ) ) else outputChatBox( 'Vehicle not created: '..tostring( getVehicleNameFromModel( model ) ) ) end end )
  21. ty can you give me a code that only the player TroyBoy can put him self in the Owner Team
  22. its work but can you give me this code to work on two teams on the admin team and the owner team
×
×
  • Create New...