SP3CTR3

Members
  • Content Count

    392
  • Joined

  • Last visited

Community Reputation

18 Decent

3 Followers

About SP3CTR3

  • Rank
    Thug

Details

  • Gang
    N/A

Recent Profile Visitors

1,359 profile views
  1. SP3CTR3

    MySQL as a single resource?

    The healthy thing to do is to make one resource and just export the functions. Otherwise, you're just repeating code and that's useless.
  2. SP3CTR3

    how to disable short nicks.

    Way to reinvent how Lua comments are supposed to be.
  3. Wow that's so cute that you don't wanna use leaked sources.. lmfao I can make the entire gamemode in no time, but are you paying well enough?
  4. And if I may ask, do you update the purchased resources for each client after you update the versions? Also, how are you protecting these resources from being leaked? (someone can purchase one resource and leak it since you're selling the source code, I presume)
  5. SP3CTR3

    عمل تيم مهم

    يا حبيبي مافي شي بالبرجمة اسمه "ما ضبط".. شو الخطأ؟ شي استوا؟
  6. SP3CTR3

    [SELL] MTA Clan Forum

    They aren't useless, they look good, and your theme looks good. but if you think it's worth 200 euros, it's not. at least not to me. But I wouldn't be surprised if "clans" pay that much. Anyway, good luck
  7. SP3CTR3

    [HELP] Money at zombie death

    First you wanted to trigger the event onWasted, then onDamage, now you're asking onWasted again. What. Do. You. Want?
  8. Or trigger an event when the player types anything and set a timer to reset the status
  9. SP3CTR3

    عمل تيم مهم

    local team = getTeamFromName('Players') setPlayerTeam(source,team)
  10. SP3CTR3

    mute problem

    I just added it in the right place and added an "end" for the if. Just copy my code, you need to learn more from the wiki how Lua works
  11. Doesn't work that way, functions in single player are different, yes, they have the same result, but they're not written in plain Lua, they're compiled. What's the point of your question? or is it just knowledge?
  12. SP3CTR3

    mute problem

    local serialMute = { } function doAction(thePlayer, cmd, actionId, playername, arg3) if (isElement( thePlayer )) then if actionId then local actionId = tonumber(actionId) local player = getPlayerFromNamePart(playername or "") local name = getPlayerName(thePlayer) if player then if actionId == 1 then local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then local duration = (tonumber(arg3) or 0) * 60 * 1000 setPlayerMuted(player, true) outputChatBox(getPlayerName(player).." #005A0Ehas been muted by #FFFFFF"..name.."#005A0E.#FFFFFF Reason: insulting #005A0EDuration #FFFFFF["..math.floor((duration *1.66666667 * 1/100000)).." mins].", root, 255, 255, 255, true) local timer = setTimer ( unmute, duration, 1, player ) serialMute [ getPlayerSerial ( player ) ] = { duration, timer }) end end else outputChatBox("Could not find the player.",thePlayer, 255, 0, 0) end end end end addCommandHandler("action", doAction) function unmutePlayer(player,command,victimName) if victimName then local victim = getPlayerFromNamePart(victimName or "") if victim then if ( isPlayerMuted(victim) ) then setPlayerMuted(victim, false) end end end end addCommandHandler("unmute",unmutePlayer) function onJoin () local serial = getPlayerSerial(source) local muted = serialMute [ serial ] if ( type ( muted ) == "table" ) then if ( muted [ 1 ] ) then setPlayerMuted ( source, true ) local timer = setTimer ( unmute, muted [ 1 ], 1, source ) serialMute [ serial ] [ 2 ] = timer return end end setPlayerMuted ( source, false ) end addEventHandler ( "onPlayerJoin", getRootElement(), onJoin ) addEventHandler ( "onPlayerQuit", root, function ( ) local serial = getPlayerSerial ( source ) local muted = serialMute [ serial ] if ( type ( muted ) == "table" ) then if isTimer ( muted [ 2 ] ) then local timeLeft = getTimerDetails ( muted [ 2 ] ) killTimer ( muted [ 2 ] ) serialMute [ serial ] [ 1 ] = timeLeft end end end ) function unmute ( thePlayer ) if isElement ( thePlayer ) then setPlayerMuted ( thePlayer, false ) serialMute [ getPlayerSerial ( thePlayer ) ] = nil outputChatBox ( "You have been unmuted by Console.", thePlayer, 0, 255, 100 ) end end function getPlayerFromNamePart(name) if name then for i, player in ipairs(getElementsByType("player")) do if string.find(getPlayerName(player):lower(), tostring(name):lower(), 1, true) then return player end end end return false end Try this
  13. SP3CTR3

    mute problem

    What the hell is that? line 74 and 75 are not in a function.. What..
  14. SP3CTR3

    Screen Loading

    You can.