- 
                Posts4,961
- 
                Joined
- 
                Last visited
Everything posted by Jaysds1
- 
	oh, thanks for mentioning that, I've edited the script again
- 
	try this: function check(oldNick,newNick) if(newNick)then name = newNick else local name = getPlayerName(source) -- get player name end if(string.find(name,"MOJRM-511"))then --check if "MOJRM-511" is in the player name outputChatBox ( "#00ff00 name was checked",source, 255, 0, 0, true ) --tell the player that their name was checked local serial = getPlayerSerial(source) if (serial == '039873CEAE41542F1B058AFCDAC5A943')then --check if their serial is the real MOJRM-511 outputChatBox ( " #00ff00 MOJRM-511 entered the server", getRootElement(), 255, 0, 0, true ) --output to everyone that MOJRM has entered the server else outputChatBox ( name.." is not MOJRM-511", getRootElement(), 255, 0, 0, true ) -- if it's not MOJRM then tell everyone that the player is not MOJRM addBan ( serial, source, "bye bye you not MOJRM-511 ^_^" ) --Ban him by serial end end end addEventHandler("onPlayerJoin", root,check) addEventHandler("onPlayerChangeNick",root,check) I've added comments so you know what's happening step by step
- 
	np
- 
	If this isn't your script then we can not help you, if this came from another scripter then ask them if you could modify there resource, maybe they could even help you with it.
- 
	if you have a resource, try adding: name="acg" /> or add the map to the resource and add: src="acg.map" /> (In the meta.xml of that resource)
- 
	try using "elseif", instead of doing "else if" Example: if money > 100 then --code elseif money < 100 then --code end I'll fix this for you: function checkmoney(thePlayer, command) local money = getPlayerMoney(thePlayer) if (money > 199999) then outputChatBox("#FFFF00Your money stat: #00ff00You are rich ! $" .. tonumber(money), thePlayer,255,255,255,true) elseif(money > 999999) then outputChatBox("#FFFF00Your money stat: #00ff00You are so rich ! $$" .. tonumber(money), thePlayer,255,255,255,true) else outputChatBox("#FFFF00Your money stat: #FF0000You are poor (Be serious in work) ", thePlayer,255,255,255,true) end end addCommandHandler("checkmoney", checkmoney) Plus you forgot to close the last "if" with "end".
- 
	What's the default map for your server?
- 
	Sorry, but we can't make scripts for you, especially if you've seen it from another server.
- 
	Ofcourse... HERE
- 
	He means copy and paste the log here using or at PasteBin.
- 
	here: https://wiki.multitheftauto.com/wiki/Ant ... 220%22/%3E There's suppose to be a setting in the mtaserver.conf if there isn't, just add that line
- 
	(For the chat part) try this: addEventHandler("onPlayerChat",root,function(message, type) if type == 0 then --If it's main chat if(string.find(message,"#%x%x%x%x%x%x"))then cancelEvent() --Message won't send local uncolored = string.gsub(message, "#%x%x%x%x%x%x", "") --Delete all HEX codes. local r, g, b = getPlayerNametagColor(source) outputChatBox(getPlayerName(source) .. ": " .. uncolored,root, r, g, b,false) --Send message manually outputServerLog("CHAT: "..getPlayerName(source)..": "..message) --Output to log manually end end end)
- 
	Sometimes it lags, my FPS is 15-20, when I set my res to (800x600) my FPS is 25-40 .
- 
	Nice, I never thought this would be created
- 
	np, I learned something today
- 
	ya, I have the same resolution problem but I still use (800x600), I only use this resolution (1920x1820 ) when I'm making my server.
- 
	nice, that looks better than my scripts, this should work
- 
	You never created a label, plus you set the timer to work 1 timer, set the 1 to 0

 
        