-
Posts
21,935 -
Joined
-
Last visited
-
Days Won
6
Everything posted by Castillo
-
You must use the rotation arguments.
-
Is not a text, is a image drawn with DX functions.
-
Instead of laughing of him, you should help him.
-
We don't give support with leaked scripts. Topic locked.
-
function radio ( x ) local team = getPlayerTeam ( source ) if ( not team ) then return outputChatBox ( "You are not in a team!", source, 255, 0, 0 ) end local r, g, b = getTeamColor ( team ) local players = getPlayersInTeam ( team ) for _, v in ipairs ( players ) do if ( x == 5) then outputChatBox (""..getPlayerName(source)..": Taking Fire! Need Assistance!", v, r, g, b) elseif ( x == 1 ) then outputChatBox (""..getPlayerName(source)..": Attack the Enemys Team !", v, r, g, b) elseif ( x == 2 ) then outputChatBox (""..getPlayerName(source)..": Defend our Team!", v, r, g, b) elseif ( x == 3 ) then outputChatBox (""..getPlayerName(source)..": Its ours", v, r, g, b) elseif ( x == 4 ) then outputChatBox (""..getPlayerName(source)..": I Cant Help !", v, r, g, b) elseif ( x == 6 ) then outputChatBox (""..getPlayerName(source)..": Requesting backup!!!", v, r, g, b) elseif ( x == 11 ) then outputChatBox (""..getPlayerName(source)..": Enemy spotted!!", v, r, g, b) elseif ( x == 12 ) then outputChatBox (""..getPlayerName(source)..": Enemy Vehicle spotted!!", v, r, g, b) elseif ( x == 13 ) then outputChatBox (""..getPlayerName(source)..": Enemy Airplane spotted!!", v, r, g, b) elseif ( x == 16 ) then outputChatBox (""..getPlayerName(source)..": Roger that!", v, r, g, b) elseif ( x == 17 ) then outputChatBox (""..getPlayerName(source)..": Negative!", v, r, g, b) elseif ( x == 18 ) then outputChatBox (""..getPlayerName(source)..": I got one!", v, r, g, b) end end end addEvent ("radio", true) addEventHandler ("radio", getRootElement(), radio)
-
No, you must create the radar areas with the positions given.
-
Edit + create meta.xml and server.lua From admin panel
Castillo replied to Quited's topic in Suggestions
There are some resources that let you edit resources in-game: https://community.multitheftauto.com/ind ... ls&id=1821 https://community.multitheftauto.com/ind ... ls&id=1354 -
You're welcome.
-
Remove "player" from function name and use "source" instead.
-
Yes, you can cancel them from entering on the vehicle if their skin/team doesn't match. Event: onVehicleStartEnter Functions: getElementModel -- For skin check. getPlayerTeam getTeamName -- For team check. cancelEvent
-
Then that code is not required.
-
I didn't understand what is this for: if getTeamName(getPlayerTeam(source)) == "Team1" then setElementVisibleTo (Team1, v, false) setTimer (setElementVisibleTo, 500, 1, Team1, v, true) setTimer (setElementVisibleTo, 1000, 1, Team1, v, false) setTimer (setElementVisibleTo, 1500, 1, Team1, v, true) setTimer (setElementVisibleTo, 2000, 1, Team1, v, false) setTimer (setElementVisibleTo, 2500, 1, Team1, v, true) elseif getTeamName(getPlayerTeam(source)) == "Team2" then setElementVisibleTo (Team2[source], v, false) setTimer (setElementVisibleTo, 500, 1, Team2[source], v, true) setTimer (setElementVisibleTo, 1000, 1, Team2[source], v, false) setTimer (setElementVisibleTo, 1500, 1, Team2[source], v, true) setTimer (setElementVisibleTo, 2000, 1, Team2[source], v, false) setTimer (setElementVisibleTo, 2500, 1, Team2[source], v, true) end
-
function radio ( x ) local team = getPlayerTeam ( source ) if ( not team ) then return outputChatBox ( "You are not in a team.", source, 255, 0, 0 ) end local r, g, b = getTeamColor ( team ) local players = getPlayersInTeam ( team ) for k,v in ipairs(players) do if getTeamName(getPlayerTeam(source)) == "Team1" then setElementVisibleTo (Team1, v, false) setTimer (setElementVisibleTo, 500, 1, Team1, v, true) setTimer (setElementVisibleTo, 1000, 1, Team1, v, false) setTimer (setElementVisibleTo, 1500, 1, Team1, v, true) setTimer (setElementVisibleTo, 2000, 1, Team1, v, false) setTimer (setElementVisibleTo, 2500, 1, Team1, v, true) elseif getTeamName(getPlayerTeam(source)) == "Team2" then setElementVisibleTo (Team2[source], v, false) setTimer (setElementVisibleTo, 500, 1, Team2[source], v, true) setTimer (setElementVisibleTo, 1000, 1, Team2[source], v, false) setTimer (setElementVisibleTo, 1500, 1, Team2[source], v, true) setTimer (setElementVisibleTo, 2000, 1, Team2[source], v, false) setTimer (setElementVisibleTo, 2500, 1, Team2[source], v, true) end if ( x == 5) then outputChatBox (""..getPlayerName(source)..": Taking Fire! Need Assistance!", v, r, g, b) elseif ( x == 1 ) then outputChatBox (""..getPlayerName(source)..": Attack the Enemys Team !", v, r, g, b) elseif ( x == 2 ) then outputChatBox (""..getPlayerName(source)..": Defend our Team!", v, r, g, b) elseif ( x == 3 ) then outputChatBox (""..getPlayerName(source)..": Its ours", v, r, g, b) elseif ( x == 4 ) then outputChatBox (""..getPlayerName(source)..": I Cant Help !", v, r, g, b) elseif ( x == 6 ) then outputChatBox (""..getPlayerName(source)..": Requesting backup!!!", v, r, g, b) elseif ( x == 11 ) then outputChatBox (""..getPlayerName(source)..": Enemy spotted!!", v, r, g, b) elseif ( x == 12 ) then outputChatBox (""..getPlayerName(source)..": Enemy Vehicle spotted!!", v, r, g, b) elseif ( x == 13 ) then outputChatBox (""..getPlayerName(source)..": Enemy Airplane spotted!!", v, r, g, b) elseif ( x == 16 ) then outputChatBox (""..getPlayerName(source)..": Roger that!", v, r, g, b) elseif ( x == 17 ) then outputChatBox (""..getPlayerName(source)..": Negative!", v, r, g, b) elseif ( x == 18 ) then outputChatBox (""..getPlayerName(source)..": I got one!", v, r, g, b) end end end addEvent ("radio", true) addEventHandler ("radio", getRootElement(), radio)
-
Show us how do you trigger "radio" event.
-
To hide the login window when they login.
-
You must add that.
-
You're welcome.
-
logIn ( source, user, pass ) That line should be: logIn ( source, account, pass )
-
Si, fijate si funciona.
-
I use this one: viewtopic.php?f=108&t=33905
-
Obtene los elementos y usa: setElementDimension
-
Busca por el foro, ya hubo muchos temas sobre esto.
-
I don't see why would the client crash for removing the vehicle upgrade.
-
Use the engine scripting functions: https://wiki.multitheftauto.com/wiki/Cli ... _functions
-
Make sure that the encoding is not "UTF-8".