-
Posts
265 -
Joined
-
Last visited
Everything posted by Fury
-
there is a /whois and /whowas command in admin resource. i think u can make it what you want by editing admin resource. yes, thats a good example! now I can finally say what I'm trying to do!! I want the command /whois to work with a serial, like; /whois if that isn't possible I might save it with the players account. edit: started thinking about it when I was downstairs, it gets saved by the players serial, time to find out where its hiding! it is possible i think. another way example; getPlayerSerial() getPlayerName() getAccount() setAccountData() getAccounts() getAccountData() addCommandHandler() or easy way you can edit the function in admin resource.
-
i know what to use, my sayin is how can i take collission in .dff file? i dont have any .col file. its in .dff file. (btw my object isnt a car) problem solved.
-
i know what to use, my sayin is how can i take collission in .dff file? i dont have any .col file. its in .dff file. (btw my object isnt a car)
-
hey, i have a .dff file which ncluding .col too. now here is my question, how can i make it work .col too? engineLoadDFF and engineReplaceModel working only for dff models. but it says; For vehicles, please omit this function by embedding your COL file into your DFF file. This way, you can be sure that the COL file is correctly (and automatically) loaded when calling engineLoadDFF. at wiki. thanks
-
there is a /whois and /whowas command in admin resource. i think u can make it what you want by editing admin resource.
-
function setNextMap ( mapname ) g_NextMap = mapname end addEvent ( "setNextMap", true ) addEventHandler ( "setNextMap", getRootElement(), setNextMap ) post server-side code which trigger "setNextMap" event. client-side is looking normal.
-
function setCameraOnPlayerJoin() fadeCamera( source, false ) setCameraMatrix( source, 1468.8785400391, -919.25317382813, 100.153465271, 1527.7, -1685.8, 99.881813049316 ) end addEventHandler("onPlayerJoin", getRootElement(), setCameraOnPlayerJoin) function spawnsf() setElementPosition ( source, 0, 0, 1 ) fadeCamera( source, true ) end addEvent("spawnsf",true) addEventHandler("spawnsf", root, spawnsf)
-
add my skype so we can talk: pinkus-floydus
-
hey, whats that mean? and how can i fix the problem? when i open the console it will take 5 mins to start resources, etc..
-
@Vendetta, how add color #3 and #4 in zmodeler? He knows how add it in script well then why he made this topic at scripting section? i dont know how to make it on zmodeler..
-
Syntax bool setVehicleColor ( vehicle theVehicle, int r1, int g1, int b1, [int r2, int g2, int b2,] [int r3, int g3, int b3,] [int r4, int g4, int b4] ) Required Arguments theVehicle: The vehicle that you wish to set the color of. r1, g1, b1: Three integers indicating the red, green and blue components of the first (main) color for the vehicle Optional Arguments r2, g2, b2: Three integers indicating the red, green and blue components of the second color for the vehicle r3, g3, b3: Three integers indicating the red, green and blue components of the third color for the vehicle r4, g4, b4: Three integers indicating the red, green and blue components of the fourth color for the vehicle example: local uVehicle = getPedOccupiedVehicle( uPlayer ) setVehicleColor( uVehicle, 255,255,255,100,100,100,200,200,200,145,145,145 )
-
oh, i didnt know that. i will change the background image.
-
i taked it from some website about mta. is this belong to somebody or server?
-
im not forcing people to buy my scripts. and i know i am noob at scripting. so im wondering what are you trying to do?
-
well sure it might be, im not good at make a price for my works we can change the selling price of course.
-
this is a script for Destruction Derby Gamemode. there is a collission script on it which detect the "killer". its working on accountData. you can see player's wins, kills and country-flag. and in the 10th line you can see your own stats for the map. its for sale $30. skype: pinkus-floydus thanks
-
you have to use https://wiki.multitheftauto.com/wiki/DxDrawText for colored texts.
-
are you using dxCreateText or GUICreateLabel?
-
setTimer( function () if ( getElementHealth ( getPedOccupiedVehicle ( source ) ) == 800 ) then -- your code goes here end end, 1000, 0 )
-
i used setTimer with that way a lot of time. not got any error at debug.
-
addEvent('onMapStarting',true) addEventHandler('onMapStarting',root, function() for i,v in ipairs(getElementsByType'player') do setElementData(v,'respawned',false) end end ) function onPlayerDeadInRace() if getElementData(source,'respawned') then return end setElementData(source,'respawned',true) local thePlayer = source local dPlayers = getDeadRacePlayers() local aPlayers = getAliveRacePlayers() local Position = aPlayers + 1 if dPlayers + aPlayers >= 3 then local cashForPlayer = math.floor((200/Position)*(dPlayers + aPlayers)) local playerCash = loadPlayerData(thePlayer,"cash") savePlayerData(thePlayer,"cash",playerCash+cashForPlayer) CheckAchievement(thePlayer,15) scoreboardRefresh(thePlayer) if Position == 1 then outputChatBox("#00AAFF# "..getPlayerName(thePlayer).." #FFFFFFhas won the map +$#00AAFF" .. cashForPlayer.. "#FFFFFF!",gRoot,255,255,255,true) triggerClientEvent ( "showWinMessage", getRootElement(), thePlayer, cashForPlayer) if LastWinners[1] == "" then if LastWinners[2] == "" then if LastWinners[3] == "" then if LastWinners[4] == "" then if LastWinners[5] == "" then LastWinners[5] = thePlayer else LastWinners[4] = thePlayer end else LastWinners[3] = thePlayer end else LastWinners[2] = thePlayer end else LastWinners[1] = thePlayer end else LastWinners[5] = LastWinners[4] LastWinners[4] = LastWinners[3] LastWinners[3] = LastWinners[2] LastWinners[2] = LastWinners[1] LastWinners[1] = thePlayer CheckAchievement(thePlayer,9) end if CurrentMap and CurrentMap == 1 then local mapsWonDM = tonumber(loadPlayerData(thePlayer,"mapsWonDM")) savePlayerData(thePlayer,"mapsWonDM", mapsWonDM+1) CheckAchievement(thePlayer,1) CheckAchievement(thePlayer,3) CheckAchievement(thePlayer,4) if LastWinnersDM[1] == ""then if LastWinnersDM[2] == "" then if LastWinnersDM[3] == "" then LastWinnersDM[3] = thePlayer else LastWinnersDM[2] = thePlayer end else LastWinnersDM[1] = thePlayer end else LastWinnersDM[3] = LastWinnersDM[2] LastWinnersDM[2] = LastWinnersDM[1] LastWinnersDM[1] = thePlayer CheckAchievement(thePlayer,10) end if HunterCount >= 3 then unlockedAC(thePlayer,12) end elseif CurrentMap and CurrentMap == 2 then local mapsWonDD = tonumber(loadPlayerData(thePlayer,"mapsWonDD")) savePlayerData(thePlayer,"mapsWonDD", mapsWonDD+1) CheckAchievement(thePlayer,1) CheckAchievement(thePlayer,3) CheckAchievement(thePlayer,4) if LastWinnersDD[1] == "" then if LastWinnersDD[2] == "" then if LastWinnersDD[3] == "" then LastWinnersDD[3] = thePlayer else LastWinnersDD[2] = thePlayer end else LastWinnersDD[1] = thePlayer end else LastWinnersDD[3] = LastWinnersDD[2] LastWinnersDD[2] = LastWinnersDD[1] LastWinnersDD[1] = thePlayer CheckAchievement(thePlayer,11) end end else outputChatBox("#00AAFF# #FFFFFFYou have recieved $#00AAFF" .. cashForPlayer .. "#FFFFFF!",thePlayer,255,255,255,true) end else outputChatBox("#00AAFF# #FFFFFF Min. 3 players to get stats and cash!",thePlayer,255,255,255,true) end end addEvent("onPlayerWasted", true) addEventHandler("onPlayerWasted", gRoot , onPlayerDeadInRace) change your code with this one.
-
yes, its for server-side.