Jump to content

-.Paradox.-

Members
  • Posts

    1,239
  • Joined

  • Last visited

Everything posted by -.Paradox.-

  1. Thanks Castillo. And is it possible to do the following? If i killed like example 2 people in the same time, it will count automatically how much i earned like example. I killed the first one and i got 24 xp and after i kill the second one i got 22, so it will output 46 if you know what i mean, if it's not possible then never mind thanks.
  2. Here is the client side part, sWidth, sHeight = guiGetScreenSize() function onTestExp() dxDrawText("#00FF000 +"..tostring(experience), (539/1024)*sWidth, (745/768)*sHeight, (289/1024)*sWidth, (250/768)*sHeight, tocolor (255, 255, 255, 255), (0.7/1366)*sWidth,(0.7/768)*sHeight,"bankgothic","left","top",false,false,false,true) end addEvent("onTestExp", true) addEventHandler( "onTestExp", root, function( expe ) experience = expe addEventHandler("onClientRender", root, onTestExp) setTimer( function () removeEventHandler ( "onClientRender", root, onTestExp ) end, 3000, 1) end) I will send you the Server side in pm if it's possible..
  3. How? Actually i did not understand what you're trying to say..
  4. Hello guys, i'm trying to trigger an dxText which it will show how much XP i earned after i kill someone, here is my code Client: sWidth,sHeight = guiGetScreenSize() function onTestExp(X) dxDrawText("#00FF000 +"..tonumber(X), (539/1024)*sWidth, (745/768)*sHeight, (289/1024)*sWidth, (250/768)*sHeight, tocolor (255, 255, 255, 255), (0.7/1366)*sWidth,(0.7/768)*sHeight,"bankgothic","left","top",false,false,false,true) end addEvent("onTestExp", true) addEventHandler( "onTestExp", root, function() addEventHandler("onClientRender", root, onTestExp) setTimer( function () removeEventHandler ( "onClientRender", root, onTestExp ) end, 3000, 1) end) Server: --just some lines of the code local X = math.random(5, 45) triggerClientEvent("onTestExp", killer, X) And killer is defined here: function win(killer, weapon, bodypart) if (killer and getElementType(killer) == "player" and killer ~= source) then
  5. Grafuroam Stolen Hud (Again): This user was banned for sharing Grafuroam client scripts, now he created another account. https://community.multitheftauto.com/index.php?p= ... ls&id=9221 Nametags again https://community.multitheftauto.com/index.php?p= ... ls&id=9223 This guy is from Egypt and he impersonate FO members, just to make Grafu(admin and owner of grafuroam) ban them,*You guys should ban him again he post only stolen scripts. DONE, USER BANNED
  6. function CrimeGang(player) if getPlayerTeam(player) ~= "CRIMETeam" then if isElementWithinMarker(player, myMarker7) then setPlayerTeam(player, CRIMETeam) outputChatBox("#FF0000[CRIME]#FFFFFF You are now #FF0000A Crime !", player, 0, 0, 0, true) end end end addCommandHandler("crime", CrimeGang) function criminal ( thePlayer, matchingDimension ) if isElementWithinMarker(thePlayer, myMarker7) then giveWeapon(thePlayer, 4, 1) setElementModel(thePlayer, 28) else outputChatBox("You Are not At The Right Place!", thePlayer, 255, 0, 0) end end addCommandHandler("crime", criminal) function onSpawn() if getPlayerTeam(source) == "CRIMETeam" then setElementPosition(source, 1292.5395507813, -771.5126953125, 95.961303710938) end end addEventHandler("onPlayerSpawn", root, onSpawn) addEventHandler("onMarkerHit", myMarker7, function(player) if getElementType(player) == "player" then outputChatBox("#FF0000[CRIME]#FFFFFFTo become a #FF0000CRIME #FFFFFFwrite /crime", player, 0, 0, 0, true) end end) function LeaveCRIME(player) if getPlayerTeam(player) then setPlayerTeam(player, nil) outputChatBox("#FF0000[CRIME]#0000FF You leaved in CRIME Gang", player, 255, 255, 255, true) else outputChatBox("#FF0000[CRIME]#0000FF You Dont Have a gang.", player, 255, 255, 255, true) end end addCommandHandler("leavecrime", LeaveCRIME) function gang ( ) if getPlayerTeam(source) ~= CRIMETeam then setPlayerTeam(source, nil) end end addEventHandler("onPlayerLogin", getRootElement(), gang)
  7. Hello, Is there some functions that I Can use to make the vehicle handling fatest after a specified speed, like example if I reach 200km/h my vehicle speed will increase so I can depass 200km/h, I already made the script to check the player speed, but no idea how I can set the vehicle speed to max after 200 and come back normal when my speed is 199 or 188, thanks.
  8. What do you want exactly?
  9. Where is the cmd part?
  10. Oh yeah sorry my bad, thought setElementData is server side :3 because I used it only in my server sided codes
  11. dxDrawText is client side, your code is server side so you should use textCreateTextItem textCreateDisplay textDisplayAddText textDisplayAddObserver Or trigger onClientRender from client side to server side and create a client side timer to make it disappear after each second with triggerClientEvent setTimer removeEventHandler
  12. getPedAmmoInClip to get how much ammo is in the clip, getPedTotalAmmo is to get the total ammo of a weapon. And seriously? Why did you copy my signature? Real shame on you...
  13. This is Xiti's dashboard.. We don't give support with leaked scripts.
  14. For stats use getPedStat And to display clip and ammo use getPedTotalAmmo --Ammo getPedAmmoInClip --Clip
  15. -.Paradox.-

    Driveby

    Hey, Is it possible to disallow the driver from doing drive by? And only if he was passenger then he can drive by. Thanks
  16. Source won't create the text for all the players on the server?
  17. And don't forget to remove the votemanager line from mtaserver.conf
×
×
  • Create New...