-
Posts
4,144 -
Joined
-
Last visited
-
Days Won
1
Everything posted by dzek (varez)
-
Progress bar freezes at 50% when creating a server for 1.
dzek (varez) replied to Maxaxle's question in Client
and on two or more players its ok? -
i think you modified my script, so please post WHOLE script you have, not only muting selected player (btw you are not checking who is trying to mute, anyone can mute another player, and this mute won't be stopped automatically)
-
zmodeler probably will do the work, but it won't be as easy as "cut" in paint.. about setting position of splitted elements -- when you will split model - you will get 4 (or more, i think that splitting it to at least 8 parts will be better, as its rather big island) models - so you will have to run map editor, get there 4 objects, and set the correct positions and rotation for them (you need to be very precise, if you want your cars not to "jump" on splitted parts.. i think nobody will do it for you - too much effort
-
REPORT COMMUNITY CENTER RESOURCES HERE
dzek (varez) replied to SATAN's topic in General MTA discussion
https://community.multitheftauto.com/?p=resources ... ils&id=857 -
post screenshots maybe
-
debug read wiki blablabla setPedSkin is deprecated, use setElementModel instead, so now: read wiki debug profit
-
akina is about 700 units long and wide. max distance in mta is 300. you have to get 3d modelling software, split your model, split your collisions manually set position of splitted models in editor. i wanted to do that half year ago, but i failed @ 3d software - i just forgot how to use it
-
kevin - dont have anything to say? just dont say anything answer: timeToMute = 5 -- in sec. mute = { } function knightrider (player) local playerName = getPlayerName(player) if (not mute[player]) then outputChatBox(playerName .. ':#FFFFFF has test knightrider', getRootElement(), 255, 255, 0, true) triggerClientEvent("knightrider", player) mute[player]=true setTimer(function(playerElement) mute[playerElement]=false end, timeToMute*1000, 1, player) else -- i think you dont need this "else", just do nothing, cause this will spam chatbox outputChatBox(playerName .. ' muted', getRootElement(), 255, 255, 0, true) end end addCommandHandler ("knightrider", knightrider) not tested
-
this is better: http://tnij.aa.am/wuwu/
-
Several Scripting Questions in regards to MTA
dzek (varez) replied to Richard Shru's topic in Scripting
about peds: when around 100 peds are spawned near each other - they like to disappear and reappear (weird, can't get why - probably gta streamer have something with it, but i heard mta can handle more elements in the streaming range). 500Mhz, 128MB RAM VPS server got crashed (server, not client) after spawning around 250-300 peds (every ped was trying to "think" not just stand, so it was a lot of calculations per secound) -
"Error: Attempt to compare number with boolean"
dzek (varez) replied to Spider Pork's topic in Scripting
it happen every time on every player? -
what a mess.. copying-pasting few snippets, few random words and joining them together WON'T work. NEVER. if you want to make anything - sit down, read, spend on it few hours.
-
real comment: https://forum.multitheftauto.com/viewtop ... 91&t=26541 more real comments you can find SEARCHING this forum. everybody only need a scripter. and making somebody admin for his hard work is NOTHING. everyone can setup own server within 5minutes. every scripter can script for himself, or collect a group of scripters better than joining one kid who can't do nothing and is asking on forums, and don't read stickies.. hell, why am i saying this? it was said 100000 times already ;/
-
first-timers should read this: https://wiki.multitheftauto.com/wiki/Main_Page (Scripting part)
-
"Error: Attempt to compare number with boolean"
dzek (varez) replied to Spider Pork's topic in Scripting
need more code (your line looks like event handler function so post whole function -
like this? https://community.multitheftauto.com/index.html?p ... ils&id=383
-
get PNG from here ;P http://www.google.com/images?client=ope ... d=0CCUQpwU
-
just check (can be client side) if somebody put in edit field a negative value - if yes - dont send it.. function (playerNick, amount) local cash = getPlayerMoney(source) if (tonumber(amount)>0) then if (cash>=tonumber(amount)) then toWho = getPlayerFromName(playerNick) if (toWho ~= false) then givePlayerMoney(toWho,amount) takePlayerMoney(source,amount) name = getPlayerName(source) outputChatBox("You've given money amount of: " .. amount .. "$ to: " .. playerNick,source,255,255,150) outputChatBox(name .. " has given you money amount of: " .. amount .. "$!",toWho,255,255,245) else outputChatBox("Player did not exist",source,255,0,0) end else outputChatBox("Insufficient founds!",source,255,0,0) end else outputChatBox("Amount have to be greater than 0!",source,255,0,0) end end) btw: use indentations! they really help!
-
https://forum.multitheftauto.com/viewtop ... 91&t=26541
-
REPORT COMMUNITY CENTER RESOURCES HERE
dzek (varez) replied to SATAN's topic in General MTA discussion
community is becoming advertising and pirating zone, WTF? https://community.multitheftauto.com/?p=resources ... ils&id=847 empty script, this resource was uploaded just to advertise the server!!!!!! (as author said in comments) https://community.multitheftauto.com/?p=resources ... ils&id=846 just copy of another script (this guy: wappie1992 should be banned.. hes only advertising) https://community.multitheftauto.com/?p=resources ... ils&id=843 this guy should also be banned: El__ (this is he's 3rd or 4th resource like that) "I put in a piece of work" -- in copying few lines to replace car and putting models/textures in folder? ;/ ANYONE IS READING THIS TOPIC? -
NO its ID * It's speed (time)! You don't have ID here, cause you are not creating object here. obj is your object...
-
we see your topic. be patient and dont bump it
-
-- 17 and 18 line: local targetPlayer = getPlayerFromName(tPlayer) -- before this try outputChatBox(tostring(tPlayer)) -- a little debug local tx, ty, tz = getElementPosition(tPlayer) -- you should use player element (targetPlayer) not player name ;P -- this occurs in few next lines in bring function you are not checking if player name is passed at all..
-
you cant replace MODEL you can replace TEXTURE download zombie script, and check the code ddf -> dff ttf -> txd (TTF - True Type Font )
