maarten123
Members-
Posts
44 -
Joined
-
Last visited
Everything posted by maarten123
-
yes , but ban is to hard for a player with sound spam if he do again then a ban
-
hello, I have a script and thus you can use a command everyone to hear a sound, but you can spam with a binder. and so I want to mute sound that spammers make an application for playing the sound become blocked, another it makes no sense. I had started only this works for everyone: P So when I am mute everyone muted. Serverside: nomute = 1 function knightrider (player) local playerName = getPlayerName(player) if(nomute == 1) then outputChatBox(playerName .. ':#FFFFFF has test knightrider', getRootElement(), 255, 255, 0, true) triggerClientEvent("knightrider", player) else outputChatBox(playerName .. 'Test sound mute', getRootElement(), 255, 255, 0, true) end end addCommandHandler ( "knightrider", knightrider ) ----Sound Mute------------------------------ function soundmute () local nomute = 0 outputChatBox ("#ffaa00Sound mute test", 255, 255, 255, true ) end addCommandHandler ( "soundmute", soundmute ) Greeting maarten123 sorry for my bad english i'm dutch
-
well, I can nowhere on the forum the possible cause of probeem son can be. YOU?
-
hi, I've a problem with admin 1.3 resource, I can't set a next map. i will be see the logs but i can't not find there. Can anyone help me? Maarten123 Sorry for my bad english i'm dutch!
-
Hi, i will make a linux MTA server with CentOS but i have a error Unknown bind() error -1. ========================================================= Multi Theft Auto: San Andreas v1.0 =========================================================== = Server name : Default MTA Server = Server IP address : = Server port : 22003 = = Log file : ../mta-server/mods/deathmatch/logs/server.log = Maximum players : 32 = MTU packet size : 1264 =========================================================== [03:12:16] Resources: 217 loaded, 0 failed [03:12:16] ERROR: Could not bind the server on interface ' ' and port '22003'! [03:12:16] Server stopped! [03:12:16] Stopping resources... [03:12:16] Closing SQLite3 database Press Q to shut down the server! can anyone help me?? Maarten123
-
is this wat you mean?Not work i don't understand function addPoints(playerSource) local playeraccount = getPlayerAccount ( playerSource ) local points = getPlayerAccount ( playerSource, "Points" ) + 3 setAccountData ( playeraccount, "Points", tonumber(points) ) outputChatBox("work?", playerSource, 222, 0, 0, true) end addCommandHandler("add",addPoints)
-
the warning: [23:45:20] ERROR: ...server11580/mods/deathmatch/resources/stats/test.lua:3: attempt to perform arithmetic on a userdata value
-
function addPoints(playerSource) local playeraccount = getPlayerAccount ( playerSource ) local points = getPlayerAccount ( playerSource, "Points" ) + 3 setAccountData ( playeraccount, "Points", points ) outputChatBox("will it work?", playerSource, 222, 0, 0, true) end addCommandHandler("add",addPoints) but didn't work
-
hi all, i wanna make a script that you get Race points but it's not work can you help me? Greeting Maarten123 Script: function addPoints(playerSource) local playeraccount = getPlayerAccount ( source ) local points = getPlayerAccount ( source, "Points" ) + 3 setAccountData ( playeraccount, "Points", points ) outputChatBox("will it work?", player, 222, 0, 0, true) end addCommandHandler("add",addPoints)
-
Thanks it's work :D
-
can somebody help me??
-
ok, I understand that but where do I "piraterpg.money" places?
-
Hello everyone. I am now working on a stats / ranking system for DD / DM and now I want the money saved. That can with getAccountData? Now I have a script, but that does not piraterpg.money the file does not exist. Now my question is, where should I place piraterpg.money I thought the resources / (my resource) / piraterpg.money but that does not work. can someone help me here with Script: function onPlayerQuit ( ) -- when a player leaves, store his current money amount in his account data local playeraccount = getPlayerAccount ( source ) if ( playeraccount ) then local playermoney = getPlayerMoney ( source ) setAccountData ( playeraccount, "piraterpg.money", playermoney ) end end function onPlayerJoin ( ) -- when a player joins, retrieve his money amount from his account data and set it local playeraccount = getPlayerAccount ( source ) if ( playeraccount ) then local playermoney = getAccountData ( playeraccount, "piraterpg.money" ) -- make sure there was actually a value saved under this key (check if playermoney is not false). -- this will for example not be the case when a player plays the gametype for the first time if ( playermoney ) then setPlayerMoney ( source, playermoney ) end end end addEventHandler ( "onPlayerQuit", getRootElement ( ), onPlayerQuit ) addEventHandler ( "onPlayerJoin", getRootElement ( ), onPlayerJoin ) Regards Maarten123. Oh yeah sorry for my bad english I'm Dutch
-
Hi everyone, As you know from my previous topic I'm working on the game mode TDMA, Now I understand some do not make maps. now I want to make a kind of timer that after five minutes and then vote manager opens a new map will open a new round begins. how can I do? Regards Maarten123 sorry for my bad english I'm Dutch
-
sorry everybody the problem is resolved but there is still a problem when I go dead in the water and then I get again gespawnt about 10x death and then does it suddenly
-
Ok, thanks i will test it now , is this client side?
-
Hello everyone, I have a server with the TDMA gamemode and to my surprise do not you die if you jump into the water. So now I want a script that when you go swimming then you die I thought of as the swimming animation is played then you die but I can not really scripting in LUA, so would anyone here would like to help me. Regards Maarten123 Sorry for my bad english, I'm dutch
