Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. Castillo

    GM qustion

    Simple: learn how to script and make it by yourself .
  2. yes is it, go to this url: http://mta.dzek.eu/vehicle/ its made by a forum member/moderator.
  3. voice chat will be available in 1.1 version, doesn't works at 1.0.4.
  4. Well, i never seen such resource here so i've made the first version of it (i will think if there will be new versions) What is it? It's a basic friend list resource How does it work? I used player serial's to store them into an xml file called "data.xml" then when he adds a new friend it adds the name of the nick of the player and his/her serial. I hope there aren't bugs so far. Enjoy it. DOWNLOAD: https://community.multitheftauto.com/index.php?p=resources&s=details&id=1267 Version 2.0 features: * Friend status turns green if user is online/red if user is offline. * Fixed small bug where you aren't able to add a friend if someone else already added him. * Added GUI chat system. Version 3.0 features: * Pop ups connect, chatting. * Fixed bug can't remove friends. * Added Profile information. New command: /setp
  5. maybe the color is wrong.
  6. local pirateShip = createRadarArea ( 1947.2705078125, 1463.240234375, 180, 180, 40, -40, 0, 255 )
  7. Castillo

    Bad argument

    lol, that doesn't make any difference.
  8. Castillo

    Bad argument

    if i'm right you can't edit data if the resource is in a zip file, at least never worked like that for me.
  9. Castillo

    Bad argument

    make it a folder else you won't be able to edit the data from players.xml.
  10. well i havent anyone to test it so i can't find the error. Edit: you're killing a player to test this, right?
  11. Castillo

    "EXP"

    Example of how to use my resource exp system when killing a player: function rewardOnWasted ( ammo, killer, killerweapon, bodypart ) if (killer) and (killer ~=source) then local exp = getElementData(killer,"exp") if exp then setElementData(killer,"exp",tonumber(getElementData(killer,"exp"))+5) outputChatBox("Experience gained +5! total ".. tonumber(exp)+5,killer,0,255,0) else setElementData(killer,"exp",0) end end end addEventHandler ( "onPlayerWasted", getRootElement(), rewardOnWasted ) this will give him +5 of experience every kill.
  12. i mean when you do setElementData(name,"class",whatever) do setElementData(attacker,"class",whatever)
  13. you're doing something wrong here, why need to add this line?: setElementData (name, "class", 2) when you got the player element already which is "attacker" (p.s: i think should be "killer" not attacker). Edit: the /rank cmd works fine i used runcode to setElementData on me like this: castillo = getPlayerFromName("[mm]castillo") setElementData(castillo,"class",6) then returns You are a General.
  14. good luck getting one , there are no FREE scripters so i recommend to start learning by YOURSELF or pay for one
  15. hmm, i didn't understand what is wrong at your script, can you explain me so i can try to help you?
  16. for shapes/radar areas you need the x,y from your position if i'm right, then the size/color (radar area only).
  17. i don't think anyone here will do that, its really easy i don't understand how you can't do it.
  18. i guess everyone could create this for his own server, some may not like this idea.
  19. Castillo

    "EXP"

    well.. maybe i could create this for community users, i just need to know how he will get EXP points? i should create a custom function or something like that? Edit: check this link https://community.multitheftauto.com/index.php?p=resources&s=details&id=1253
  20. you need to create a col shape (is the most efficient) then use onColShapeHit functions: createRadarArea -->> https://wiki.multitheftauto.com/wiki/CreateRadarArea createColRectangle -->> https://wiki.multitheftauto.com/wiki/CreateColRectangle toggleControl -->> https://wiki.multitheftauto.com/wiki/ToggleControl events: onColShapeHit -->> https://wiki.multitheftauto.com/wiki/OnColShapeHit onColShapeLeave -->> https://wiki.multitheftauto.com/wiki/OnColShapeLeave
  21. function createMoney(player) local x, y, z = getElementPosition(player) local x1, y1, x2, y2 x1 = (x-2)+(math.random()*4) y1 = (y-2)+(math.random()*4) x2 = (x-2)+(math.random()*4) y2 = (y-2)+(math.random()*4) local moneyAmmount = getPlayerMoney(player) takePlayerMoney(player, moneyAmmount) setElementData(createPickup(x1, y1, z, 3, 1212), "ammount", moneyAmmount) setElementData(createPickup(x2, y2, z, 3, 1212), "ammount", moneyAmmount) end function moneyPickupHit(player) local money = getElementData(source, "ammount") if money then givePlayerMoney(player, money) destroyElement(source) end end function playerDied(ammo, attacker, weapon, bodypart) if (isElement(attacker)) then createMoney(source) end end addEventHandler("onPickupUse", getRootElement(), moneyPickupHit) addEventHandler("onPlayerWasted", getRootElement(), playerDied) try this.
×
×
  • Create New...