Jump to content

MatXpl

Members
  • Posts

    180
  • Joined

  • Last visited

Everything posted by MatXpl

  1. Hello! I have event onMapStop and how can i run map voting by votemanager for current started gamemode?
  2. M&M Gaming Zapraszamy na naszą sieć serwerów MTA! Na razie mamy 3 serwery (wszystkie w budowie) -RPG -DM/DD -Mini-Wars (nowy gamemode, w stylu stealth) Zapraszamy na naszą strone, możecie śledzić progress Później podam więcej info http://mmg.xn.pl/
  3. its from Solidsnake14 code if think that if ( msgType == ) then is wrong you need to use if ( msgType == 0 ) then
  4. Its bugs of other code in this resource.. find 156 line in server script in new topic and in client.lua you need to delete guiWindowSetSizable()
  5. but if (Team) then outputChatBox ( "["..Team.."]"..Tag..": "..msg, getRootElement(), 255, 0, 0, true ) else outputChatBox ( "[Prestege]"..Tag..": "..msg, getRootElement(), 255, 0, 0, true ) end
  6. lol team tag msg is not strings! outputChatBox ( "["..Team.."]"..Tag..": "..msg, getRootElement(), 255, 0, 0, true ) try this ;d
  7. MatXpl

    judge script

    https://wiki.multitheftauto.com/wiki/DbConnect https://wiki.multitheftauto.com/wiki/Mod ... ql_connect this when resource start ?
  8. https://wiki.multitheftauto.com/wiki/OnPlayerChat https://wiki.multitheftauto.com/wiki/CancelEvent https://wiki.multitheftauto.com/wiki/GetPlayerTeam https://wiki.multitheftauto.com/wiki/Get ... ametagText and to compile this https://wiki.multitheftauto.com/wiki/OutputChatBox outputChatBox ("["..team.."]"..nick..": "..msg,getRootElement() )
  9. in chat only ? or in game ?
  10. you forgot to close 'function' and add event, name function, and get resource function mapStart (startedResource) if getResourceInfo ( startedResource, "type" ) == "map" then setSkyGradient(0,0,0,0,0,0) end end addEventHandler("onResourceStart",getRootElement(),mapStart)
  11. MatXpl

    judge script

    ohhh, ok and how to connect with my sql server?
  12. MatXpl

    judge script

    thanks! is working that it not allows the player to vote for the same map twice ? (check)
  13. map = resource I'd do it like this https://wiki.multitheftauto.com/wiki/GetResourceInfo if getResourceInfo ( startedResource, "type" ) == "map" then setSkyGradient(0,0,0,0,0,0) end
  14. you dont need client you dont have a event to trigger you can use function () setSkyGradient(0,0,0,0,0,0) end with https://wiki.multitheftauto.com/wiki/OnResourceStart SERVER-SIDE
  15. MatXpl

    judge script

    can you give me a simple example ?
  16. it should working but show client-side
  17. yes, but you can use https://wiki.multitheftauto.com/wiki/GetAccount
  18. MatXpl

    judge script

    ok, im going to write this function vote(p,command,vote) local nick = getPlayerNametagText(p) executeSQLQuery("CREATE TABLE IF NOT EXISTS votes (nick TEXT, vote TEXT)") end addCommandHandler("vote",vote) it should looks like that ?
  19. if debug dosnt show bugs, its good try /debugscript 3 its custom event he post this resource (client and server) a few minutes ago
  20. Solidsnake14 have right you should use https://wiki.multitheftauto.com/wiki/GetPlayerAccount
  21. it should working have you another code in this script ?
  22. use addEventHandler("onVehicleStartEnter", getRootElement(), if it dosnt work, sumbit a debug
  23. MatXpl

    judge script

    how can i make script to judge maps ? ;D How to save this ? (best method)
  24. try upload new race gamemode ?
×
×
  • Create New...