-
Posts
451 -
Joined
-
Last visited
Everything posted by ZeyadGTX
-
what you mean ? do i replace that with line ?
-
Client function sendHeadshot ( attacker, weapon, bodypart, loss ) if attacker == getLocalPlayer() then if bodypart == 9 then triggerServerEvent( "onServerHeadshot", getRootElement(), source, attacker, weapon, loss ) setElementHealth ( source, 0 ) setPedHeadless( source, true ) end end end addEventHandler ( "onClientPedDamage", getRootElement(), sendHeadshot ) addEventHandler ( "onClientPlayerDamage", getRootElement(), sendHeadshot ) Server function MakePlayerHeadshot( attacker, weapon, bodypart, loss ) if getElementType ( attacker ) == "ped" then if bodypart == 9 then triggerEvent( "onPlayerHeadshot", source, attacker, weapon, loss ) setPedHeadless ( source, true ) killPed( source, attacker, weapon, bodypart ) setTimer( BackUp, 900, 1, source ) end end end function MakeHeadshot( source, attacker, weapon, loss ) triggerEvent( "onPlayerHeadshot", source, attacker, weapon, loss ) killPed( source, attacker, weapon, 9 ) setPedHeadless ( source, true ) setTimer( BackUp, 900, 1, source ) end function BackUp( source ) if getElementType ( source ) == "player" then setPedHeadless ( source, false ) end end function outputHeadshotIcon (killer, weapon, bodypart) if bodypart == 9 then cancelEvent() local r2,g2,b2 = getTeamColor ( getPlayerTeam( killer ) ) local r1,g1,b1 = getTeamColor ( getPlayerTeam( source ) ) exports.killmessages:outputMessage ( {getPlayerName(killer),{"padding",width=3},{"icon",id=weapon},{"padding",width=3},{"icon",id=256},{"padding",width=3},{"color",r=r1,g=g1,b=b1},getPlayerName(source) }, getRootElement(),r2,g2,b2) end end addEvent ( "onServerHeadshot", true ) addEventHandler( "onPlayerDamage", getRootElement(), MakePlayerHeadshot ) addEventHandler( "onPlayerKillMessage", getRootElement(), outputHeadshotIcon ) addEventHandler( "onServerHeadshot", getRootElement(), MakeHeadshot )
-
Works for Headshots ? what to modify ?
-
i want to if player killed near Base 1 spawn in base 1 , killed near to base 2 respawn in base 2
-
Hello I use This spawn protection but its not working idk why i think because of using headshot ? ! i tried everything but not working i use the Headshot in the community not the default headshot ! Client Side : addEventHandler("onClientPlayerDamage",getRootElement(), function() if getElementData(getLocalPlayer(),"spawnprotect") == "true" then cancelEvent() end end ) Server : addEventHandler("onPlayerSpawn",getRootElement(), function() setElementData(source,"spawnprotect","true") setElementAlpha(source,150) setTimer(setElementData,10000,1,source,"spawnprotect","false") setTimer(setElementAlpha,10000,1,source,255) end )
-
Hello Guys i have idea i hope you can help me with i have Team which has 2 bases , The team spawns in 1 base i would like to make The Team spawn in the 2 bases i mean random spawn in the 2 bases
-
Hello guys i have script made by Nikolai96 he helped me with this script , the script make you in team chat (TEAM) this word changes to (CLAN) but the problem i want this (CLAN) with Red color and the other doesn't change i forgot that script because my pc was formated and i forgot every thing help pls , the problem is the whole text is with green iwant only (CLAN) addEventHandler('onPlayerChat', getRootElement(), function(msg, type) if type == 2 then cancelEvent() local r, g, b = getPlayerNametagColor(source) for placeNumber, playerData in ipairs(getPlayersInTeam(getPlayerTeam(source))) do outputChatBox("#00FF00(CLAN)"..getPlayerName(source)..":#FFFFFF "..string.gsub(msg, "#%x%x%x%x%x%x", ""), playerData, r, g, b, true) end end end )
-
nah i won't cause its your server
-
I stopped that Before , i made Deal WIth GRAFU also so ask before talking
-
Hello , THis Guy Stealing My serve Resources from Client Files and advertise in my server and using my name i'd like to block the Serve IP and Name from Search : mtasa://178.33.37.51:22166 Name Dragones_Roam 1.3 Version And thanks
-
he can add him self admin or stopping resources etc
-
Hello This Server Owner is advertising in my server using this site : http://37.187.28.212:24815/resourcebrowser/ He is hacker he could add fake pass and username and he is sharing using Webchat Please block his server i will spam in this Topic untill you block it Pls he is using my resources and advertising IP : mtasa://178.33.207.154:22003 Name : Friendsroom
-
first, please chill. do NOT block this server from the serverlist. thats not the best and i can tell you why: iam the owner of this server. this ip belongs to me. i gave a free mta server to some guys here from the board, some running on vserver, and this one on my root server with this ip adress. i can promise you hector man that i will talk to bilal and ask him what hes doing there. if thats true, his server will be closed in just that moment. but again, please do not blacklist that server. you would punish me and other users with good behavior. i will contact hectorman for sure to ask him whats behind that story viewtopic.php?f=115&t=77693&start=45 This is more than enough of explanation. Look This Topic : viewtopic.php?f=115&t=77693&start=45 He Said He Cloned Grafuroam's Stuff I think this is good reason for Getting Blocked
-
Hello I will spam in This Topic If you DIDNOT BLOCK THIS SERVER 1 - stealing my resources from Client Side 2 - Advertising in my server 3 Clones My Name in his Server To think that iam in that Server I WONT STOP SAYING PLS BLOCK THIS SERVER Name : Bilal-Roam mtasa://62.75.235.31:22003
-
But This adds A Team For Guest ?
-
Hello Please This Server SHould Be Blocked , the owner (MAXIROAM) stolen My resources and He has Cloned Server Of Grafuroam and he also changed his name to [FO]Grafu , and when Grafuroam was Closed he chaned the server Name also to Grafuroam Resources Are Cloned and he share some of them in the Community The IP : mtasa://217.79.183.230:22003 Server Name : Maxiroam
-
You will help me or no
-
when i said this is my script i meant this is the script which i use
-
Did i say i make it ?
-
Hello this is my script but i have small problem any one can send money to any player by Negative ( - ) like /givemoney Name -5555 how do i disable this function giveSomeoneMoney(player, cmd, target, amount) if target then if amount then local money = getPlayerMoney(player) local targetplayer = getPlayerFromParticalName(target) local r,g,b = getPlayerNametagColor(player) amount = tonumber(amount) if targetplayer then if money >= amount then givePlayerMoney(targetplayer, amount) takePlayerMoney(player, amount) outputChatBox("You Were Given #00FF00$"..tostring(amount).." #006400 From #FF0000"..getPlayerName(player) , targetplayer, 0, 100, 0, true) outputChatBox("You Gave #00FF00$"..tostring(amount).."#006400 To #FF0000"..getPlayerName(targetplayer), player, 0, 100, 0, true) else outputChatBox("You don't have enought money!", player, 255, 0, 0) end else outputChatBox("Error: Player not found", player, 255, 0, 0) end else outputChatBox("Error: /givemoney [player name] [amount]", player, 255, 0, 0) end else outputChatBox("Error: /givemoney [player name] [amount]", player, 255, 0, 0) end end addCommandHandler("givemoney", giveSomeoneMoney) function getPlayerFromParticalName(thePlayerName) local thePlayer = getPlayerFromName(thePlayerName) if thePlayer then return thePlayer end for _,thePlayer in ipairs(getElementsByType("player")) do if string.find(string.gsub(getPlayerName(thePlayer):lower(),"#%x%x%x%x%x%x", ""), thePlayerName:lower(), 1, true) then return thePlayer end end return false end