Jump to content

reeshan

Members
  • Content Count

    19
  • Joined

  • Last visited

Community Reputation

0 Neutral

About reeshan

  • Rank
    Square
  1. my problem is that i want to use the same script for save items after death....... how/where do i put the OnPlayerWasted
  2. Here is my script for save on quit and login i want to make it save on respawn also. if a person dies and come back with same weapon and money, so that the money,skin and weapon will not change except if the player uses or changes it. thx in advance. My current quit and login save script: function onPlayerQuit ( ) local playeraccount = getPlayerAccount ( source ) if ( playeraccount ) then local x,y,z = getElementPosition (source) setAccountData ( playeraccount, "s.HandMoney", getPlayerMoney ( source ) ) setAccountData (playeraccount, "s.s
  3. i got this error [2013-08-25 14:16:55] start: Requested by Console [2013-08-25 14:16:55] Starting dev [2013-08-25 14:16:55] SCRIPT ERROR: dev\dev.lua:9: ')' expected (to close '(' at line 1) near 'end' [2013-08-25 14:16:55] WARNING: Loading script failed: dev\dev.lua:9: ')' expected (to close '(' at line 1) near 'end' [2013-08-25 14:16:55] start: Resource 'dev' started [2013-08-25 14:17:39] restart: Requested by Console [2013-08-25 14:17:39] restart: Resource restarting... [2013-08-25 14:17:39] Stopping dev [2013-08-25 14:17:40] Resource 'dev' changed, reloading and starting [2013-0
  4. i don't know how to use it can u make a direct lua for me
  5. how do i turn it on and i want to use the showcol
  6. it dosen't work at all, try it i don't know whats wrong.
  7. yeah!, i tried without adding ur script it still dosent work can u help me out...!!! how can i make this work
  8. the whole script it dident work
  9. it works but i want -350 cash on death
  10. i want to make a system that will save everything on death and on login in and logout the things i want to save is weapon skills, zombie kills, player deaths, hours played, money and skin. i also want to -350 cash on death function playerLogin (thePreviousAccount, theCurrentAccount, autoLogin) if not (isGuestAccount (getPlayerAccount (source))) then local accountData = getAccountData (theCurrentAccount, "funmodev2-money") if (accountData) then local playerMoney = getAccountData (theCurrentAccount, "funmodev2-money") local playerSkin = getAccountData (theCur
  11. thx control entity well i changed the play gamemode and used it for my own i change the whole broph.lua is that ok
  12. this is my script i need someone to help me do this function createStaffTeamOnStart ( ) StaffTeam = createTeam ( "Staff", 255, 255, 255 ) for index, player in ipairs ( getElementsByType ( "player" ) ) do if isObjectInACLGroup ( "user.".. getAccountName ( getPlayerAccount ( player ) ), aclGetGroup ( "Admin" ) ) then setPlayerTeam ( player, StaffTeam ) end end end addEventHandler ( "onResourceStart", resourceRoot, createStaffTeamOnStart ) function setStaffTeam ( ) if isObjectInACLGroup ( "user.".. getAccountName ( getPlayerAccount ( so
  13. i have a lot of erros and i not good with scripts i tried the wiki
×
×
  • Create New...