Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About liamknight24

  • Rank

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. chat bubbles worked, but got another problem i left the server for a day and didnt touch a thing and now the bots arnt working at all, Warning: bad argument @ setElementData and setPedStat
  2. thank you!!! but what about the gui controlling them?? edit: sorry it works fine thankyou!! Edit again : what about the bots talking?
  3. http://community.mtasa.com/index.php?p= ... ils&id=612 to change the acl just use your admin panel and click on the resources tab then click manage ACL. EDIT: i didnt realise i was too late
  4. hi everybody i tried using the gui from the cp gamemode to control bots as i wanted each player to have a bot that they can control, the only problem is that it dosent work , here is what i put together: Server: function spawnBot(pedname,player,pedweapon,pedskin) if isElement(player) then local team = getPlayerTeam(player) local randomnumber = math.random(1,#spawns) local randx = math.random(0,6)-3 local randy = math.random(0,6)-3 local newped = call(getResourceFromName("Slothbot"),"spawnBot"
  5. old post but.. is it possible yet?
  6. hmm it still dosent work im stuck, is there any way to cancel the outputChatBox or hide the marker if there is already a timer if anybody can solve my problem. thanks again. *edit* please help people this does not work and I haven't got a clue why.
  7. I tried making a bank robbery script but it worked but the timer doesn't, I've never used timers before thanks for any help. function robmarkeronsetup () robmarker = createMarker (2277.99, -1729.04, 508.479, "cylinder", 4.5, 255, 0, 0, 128, getRootElement()) setElementInterior (robmarker, 3) end addEventHandler("onResourceStart", getRootElement(), robmarkeronsetup) function robm (hitPlayer, matchingDimension) if (source == robmarker) then outputChatBox ("****BANK ROB****", hitPlayer, 255, 0, 0, false) outputChatBox ("Press X To Rob The Bank!", hitPlayer, 255, 0, 0, false) outputChatBox ("
  8. hi i have made this script t try and save the "deaths" on the scoreboard but it dosent work, here it is function Quit(player) local playeraccount = getPlayerAccount ( source ) if ( playeraccount ) then local Deaths = getElementData ( source, "Deaths" ) if ( Deaths ) then setAccountData( playeraccount, "Deaths", Deaths ) end end end addEventHandler ( "onPlayerQuit", root, function() Quit() end ) function onPlayerConnect(player) local playeraccount = getPlayerAccount ( source ) if ( playeraccount ) then local Deaths = GetAccountData( playeraccount, "Deaths") if ( Deaths ) then setElem
  9. cheers 50p. anybody know why this dosent work ? .. outputChatBox ( getPlayerName ( source ).. "has invited" .. otherplayer .. " to their team" "("..getPlayerTeam ( source )..")", otherplayer ) -- i want it to come out like this: "player" has invited "the other player" to their team (teamname) and only let the player from the command see it, i think the rest of the script is fine but something is messed up with this.
  10. how can i make a script that will write a car position to XML when the player types in a command? and how do i compile scripts, and is there any point?
  11. 50p thanks again, ive never wrote a client side script before are they just the save as server sripts but changed in the meta and use some differnt functions? and also in the script i need to setAccountData and according to the wiki its a server only function, and to get the players weapon from the slot it needs to be client side so is my script not possible or can i add an event that will trigger the server setAccountData function from the server side script but if this is possible how will the server know what data to set if they are not in the same script? or is there any other getting
  12. cheers 50p i have another problem if i want to get a players weapon from a slot would it be done like this : local weapon = getPlayerWeapon ( player, 3 ) hopefully trying to get a weapon from the player and from weapon slot 3?
  13. Go back to your out of sync crap MTA kicks sa-mp ass.
  • Create New...