Jump to content

GanJaRuleZ

Members
  • Posts

    298
  • Joined

  • Last visited

Everything posted by GanJaRuleZ

  1. GanJaRuleZ

    Roadblock

    Script correct.. rb={} function rbs(source,command,state) if getPlayerTeam(source) == getTeamFromName("Muncitorii Strazilor") or getPlayerTeam(source) == getTeamFromName("Las Venturas Police Department") then local x,y,z = getElementPosition(source) local rotX,rotY,rotZ = getElementRotation(source) if state == "1" then rb[#rb+1] = createObject(978,x,y,z-0.15,0,0,rotZ) setElementPosition ( source, x, y, z+1 ) outputChatBox("*Blocaj adaugat.",source,255,255,0) elseif state == "2" then rb[#rb+1] = createObject(981,x,y,z,0,0,rotZ+180) setElementPosition ( source, x, y, z+1 ) outputChatBox("*Blocaj adaugat.",source,255,255,0) elseif state == "3" then rb[#rb+1] = createObject(3578,x,y,z-0.2,0,0,rotZ) setElementPosition ( source, x, y, z+1 ) outputChatBox("*Blocaj adaugat.",source,255,255,0) elseif state == "4" then rb[#rb+1] = createObject(3091,x,y,z-0.38,0,0,rotZ+180) setElementPosition ( source, x, y, z+1 ) outputChatBox("*Blocaj adaugat.",source,255,255,0) elseif state == "5" then rb[#rb+1] = createObject(1238,x,y,z-0.65,0,0,rotZ) setElementPosition ( source, x, y, z+1 ) outputChatBox("*Blocaj adaugat.",source,255,255,0) elseif state == "6" then rb[#rb+1] = createObject(1459,x,y,z-0.4,0,0,rotZ) setElementPosition ( source, x, y, z+1 ) outputChatBox("*Blocaj adaugat.",source,255,255,0) else outputChatBox("SYNTAXA: /rb [1-6]",source,255,255,0) end end end addCommandHandler("rb",rbs) function del(source,command) for i,v in ipairs(rb) do -- Aicia ai facut 'pairs' in loc de 'ipairs' destroyElement(v) end end addCommandHandler("rbd",del)
  2. I know that , but , still didn't know how to use in-script..
  3. Maybe .. But I'm almost sure that he stole it.
  4. Actually, everybody can change the name "client-side" to "server-side"..
  5. GanJaRuleZ

    homes xml

    You can create ur own ? Why ask others ?
  6. If it wasn't stolen , you would have the SERVER-SIDE ~!~ .. It's low probabilty that the owner forgot to put the serverside.. But , if this is from community , who is the author and how is the script called ? I see the file is called "AusRPG" , i don't see any on community Strange or what ?
  7. Can you give me an example on how to use it ? I can't figure it out
  8. Thank you very much , but now , i want to add words in-game , like in oldskool mta This is what i got function addAWord(player,_,...) local text = table.concat({...}," ") if ( text ~= nil ) then table.insert(theCensored,text) outputChatBox("Added the word ' "..tostring">tostring(text).." to the censored words , to remove it use /rcw or /removecensoreword",player,0,0,100,true) end end addCommandHandler("acw",addAWord) addCommandHandler("addcensoreword",addAWord) No errors , but when i write /acw lol for example , and when i say lol , nothing happens..
  9. Now i've got this error : ERROR : censore\server.lua:42: bad argument #2 to 'find' ( string expected , got table ) Thanks
  10. theCensored is a table .. So i have this theCensored = { "STF" "LOL" "XDD" } And now it gives me the following error : WARNING : Loading script failed:censore\server.lua:4: '}' expected (to close '{' at line 2 ) near "LOL" ' Ty ..
  11. Right , instead of function bastardDied( player_Wasted ) use function bastardDied() And replace each "player_wasted" with "source" ..
  12. function whenSomeoneChats(msg,msgType) local name = getPlayerName(source) if (string.find(msg,theCensored)) then outputChatBox("That is a censored word , if you think that is a mistake , contact an admin.",player,255,0,0,true) outputChatBox("[CENSORING SYSTEM] : "..tostring">tostring(name).." used an censored word. He is muted for 10 seconds from now.",getRootElement(),255,0,0,true) setPlayerMuted(source,true ) setTimer( function() setPlayerMuted(source,false) end , 10000,1) setTimer( function() outputChatBox("[CENSORING SYSTEM] : The player "..name.." has been unmuted.",getRootElement(),250,0 ,0 , true ) ) end end end
  13. Actually it definies the player points ? o.0 If 'points' isn't definied , the script will automaticaly use '0' ..
  14. Ty , but , now i have a problem.. It says : WARNING: Loading script failed: censore/server.lua:42: unexpected symbol near ')' This error refers at these 2 lines ( idk wich of them ) setTimer( function() setPlayerMuted(source,false) end , 10000,1) setTimer( function() outputChatBox("[CENSORING SYSTEM] : The player "..name.." has been unmuted.",getRootElement(),250,0 ,0 , true ) ) Ty EDIT : "name" comes from here : local name = getPlayerName(source)
  15. if you don't know English language you can't do programming/scripting. Meh , then the asians are mages ? .. ON : You need to learn that , you will understand it , belive me
  16. @@IIYAMA , please stop making these affirmations just for posts. ON : Try to replace these : local puan = tonumber ( loadPlayerData( player_Wasted, "points" ) ) or 0 Full code : function bastardDied( player_Wasted ) local rank = getPlayerRank( player_Wasted ) if (rank == 2) then local pointsToDie = 5 local playerPoints = tonumber">tonumber">tonumber ( loadPlayerData( player_Wasted, "points" ) ) savePlayerData( player_Wasted, "points", playerPoints + pointsToDie ) outputChatBox ( "#c0c0c0* #abcdef"..string.gsub(getPlayerName (player_Wasted),"#%x%x%x%x%x%x","").." #c0c0c0has finished this round in second place and got #abcdef5 #c0c0c0points!", root, 255, 255, 255, true ) elseif(rank == 3) then local pointsToDie = 3 local playerPoints = tonumber ( loadPlayerData( player_Wasted, "points" ) ) or 0 savePlayerData( player_Wasted, "points", playerPoints + pointsToDie ) outputChatBox ( "#c0c0c0* #abcdef"..string.gsub(getPlayerName (player_Wasted),"#%x%x%x%x%x%x","").." #c0c0c0has finished this round in third place and got #abcdef3 #c0c0c0points!", root, 255, 255, 255, true ) elseif(rank > 3 and rank < 31) then local pointsToDie = 1 local playerPoints = tonumber ( loadPlayerData( player_Wasted, "points" ) ) or 0 savePlayerData( player_Wasted, "points", playerPoints - pointsToDie ) outputChatBox ( "#c0c0c0* #abcdefYou died and lost #abcdef1 #c0c0c0point!", player_wasted, 255, 255, 255, true ) end end addEventHandler("onPlayerWasted", getRootElement(), bastardDied) Btw , loadPlayerData and savePlayerData are definied ? I doubt this.
  17. Hai all , so , the only thing i ask yet, is an example.. If i have a table , and i want to outputChatBox each word from there in the same sentence , how should i make.. (Sry for english ) Like this: words = { "lol" "xD" "ssffdd" } function lolout() for i,v in ipairs">ipairs">ipairs(words) do outputChatBox(v , getRootElement() , 255 , 0 ,0 ,true) end end Idk if it's good , yet i made it , but , that will output each word in another sentence , like: lol ssffdd And i want it so : lol,,ssffdd Thank you in advance.
  18. Capy , i was just trying to help o.0 Whatever..
  19. Then pay somebody for doing it , i recommend solidsnake , he's the best in here
  20. Who is this guy , i don't think he can properly script , better PM me
  21. GanJaRuleZ

    CLEO

    Dear hopeless kid , no , you cannot convert CLEO to LUA ..
  22. -.- example : "adduser john123 home/johnsserver "
  23. You need to add a ID giving-system too
×
×
  • Create New...