Recent Posts

Pages: 1 ... 3 4 [5] 6 7 ... 10
41
Deleted Crap / Re: Suggest some bullshit... OH WAIT, SARP IS BULLSHIT LOL
« Last post by PSN✞ on June 12, 2012, 03:09:15 am »
If you don't know how to script then stop saying mine is a copy.Its not a copy its made by myself fo my home server.
42
Deleted Crap / Noobs
« Last post by Mohamed on June 11, 2012, 11:46:44 pm »
all Noobs and Fuckers and **** this server WTF kratos **** you i hate you Noob you too maroc noobs .......... :o :o :o 8) 8)
43
Deleted Crap / **** you kratos
« Last post by Mohamed on June 11, 2012, 11:44:50 pm »
all Noobs and Fuckers and **** this server WTF kratos **** you i hate you Noob you too maroc noobs ..........
44
SOG Team / Re: SOG Team Application
« Last post by Mohamed on June 11, 2012, 11:44:11 pm »
all Noobs and Fuckers and **** this server WTF kratos **** you i hate you Noob you too maroc noobs ..........
45
Deleted Crap / **** all members in this forum
« Last post by Mohamed on June 11, 2012, 11:43:11 pm »
all Noobs and Fuckers and **** this server WTF kratos **** you i hate you Noob you too maroc noobs ..........
46
Deleted Crap / Re: BULLSHIT DONATION CRAP LOL PIECE OF **** **** ****
« Last post by Ronald on June 11, 2012, 10:21:47 pm »
I said *script*
47
Deleted Crap / Re: Suggest some bullshit... OH WAIT, SARP IS BULLSHIT LOL
« Last post by pazimo on June 11, 2012, 02:59:47 pm »
Vehicle health by PSN


Code: [Select]
----------------------------------------------------------------
-------------------- Digital Vehicle Health --------------------
-------------------- Scripted by PSN ----------------


function vehicleHealth()
    local vehicle = getPedOccupiedVehicle( localPlayer )
if ( vehicle ) then
local vehicleHealth = getElementHealth( vehicle )
local scx, scy = guiGetScreenSize()
if ( math.floor( vehicleHealth  / 10 ) ) > 70 then
-- If the vehicle health is higher then 70% the health is showed in a white color
dxDrawText( ( math.floor( vehicleHealth / 10 ) ) .. "% Health", scx - 125,scy - 70,scx,scx,tocolor(255,255,255,255),0.9, "bankgothic","right","top",false,false,false)
elseif ( math.floor( vehicleHealth / 10 ) ) > 40 and ( math.floor( vehicleHealth / 10 ) ) < 70 then
-- If the vehicle health is between 40% and 70% the health is showed in a orange color
dxDrawText( ( math.floor( vehicleHealth / 10 ) ) .. "% Health", scx - 125,scy - 70,scx,scx,tocolor(225,165,0,255),0.9, "bankgothic","right","top",false,false,false)
elseif ( math.floor( vehicleHealth / 10 ) ) < 40 then
-- If the vehicle health is lower then 40% the health is showed in a red color
dxDrawText( ( math.floor( vehicleHealth / 10 ) ) .. "% Health", scx - 125,scy - 70,scx,scx,tocolor(225,0,0,255),0.9, "bankgothic","right","top",false,false,false)
end
end
end
addEventHandler("onClientRender", root, vehicleHealth


Meta

Code: [Select]
<meta>
<info author="PSN" version="1.0" type="script" name="Vehicle Health" description="Vehicle Health" />

<script src="vehicleHealth.lua" type="client"/>
</meta>
good one but to tell you something ! even i can copy scripts and change author name  ;)
48
Deleted Crap / Re: Suggest some bullshit... OH WAIT, SARP IS BULLSHIT LOL
« Last post by PSN✞ on June 11, 2012, 02:59:01 pm »
Anti AFK by PSN

Client side

Code: [Select]
--***********************************--
--***********************************--
--      Anti AFK System For War      --
--            By PSN            --
--            Client Side            --
--***********************************--
--***********************************--
-------------- CHANGEABLE
NumToCount = 20 -- the number to count before the player get killed / kicked
MSGtoShow = "You Are Afk" -- the Message to show
CountSpeed = 1500 -- less number will be faster.
-------------- UNCHANGEABLE
rRoot = getResourceRootElement(getThisResource()) -- Resource Root ,,
setElementData(getLocalPlayer(),"AFKtime",0) -- Rest AFK Times For Player
setElementData(localPlayer,"State-AFK",false)
--- DX ---
sw, sh = guiGetScreenSize() -- Get The Screen Size
x,y = sw/2,sh/2 -- Using Math to Set The Text in center

addEvent("YouAreAFK",true) -- AFK Message Event
addEventHandler("YouAreAFK",root, -- AFK Message Event Handler
function() -- AFK Message Function
function You() -- AFK Message Function

dxDrawText(  MSGtoShow, x-700,y-497,sw,sh,tocolor ( 0, 0, 0, 255 ), 4, "pricedown","center", "center", false, false, false)-- AFK Message Shaddow
dxDrawText( MSGtoShow, x-700,y-500,sw,sh,tocolor ( 255, 255, 0, 255 ), 4, "pricedown","center", "center", false, false, false)-- AFK Message

end -- END of AFK Message Function
addEventHandler ( "onClientRender",root,You) -- AFK Message Event Handler
Count() -- Kill Player Counting Trigger
end )

function Count()-- Counting
-- Count --
local n = NumToCount -- Count Number
local count = ""..n.."" -- Count Number
local x,y = sw/2,sh/2 -- Center Text

function txt()
dxDrawText(" You Will Be Killed After "..count.." Seconds", x-700,y-292,sw,sh,tocolor ( 0, 0, 0, 255 ), 1, "pricedown","center", "center", false, false, false) -- Counting DX
dxDrawText(" You Will Be Killed After "..count.." Seconds", x-700,y-295,sw,sh,tocolor ( 255, 0, 0, 255 ), 1, "pricedown","center", "center", false, false, false)-- Counting DX

dxDrawText(" Move To Cancel", x-700,y-241,sw,sh,tocolor ( 0, 0, 0, 255 ), 1, "pricedown","center", "center", false, false, false)-- Text DX
dxDrawText(" Move To Cancel", x-700,y-243,sw,sh,tocolor ( 255, 0, 0, 255 ), 1, "pricedown","center", "center", false, false, false)-- Text DX
end

addEventHandler ( "onClientRender" , root ,txt)-- Adding DX Event Handler

timer = setTimer ( -- Count
function()-- Count
n = n - 1 -- Count
count = ""..n.."" -- Count
playSoundFrontEnd ( 20 )-- Play Sound On Count
if n == 0 then -- on Count END
triggerServerEvent ("KillAFK", getLocalPlayer()) -- Triggers Killing Function
playSoundFrontEnd ( 101 ) -- Play SOund on Count END
removeEventHandler ( "onClientRender" , root ,txt) -- Remove DX Text's After Count END
removeEventHandler ( "onClientRender",root,You)-- Remove DX Text's After Count END
end
end
, CountSpeed , NumToCount ) -- End Of Count Timer

--- Count---
end

addEvent("YouAreNotAFK",true) -- Removing Message Event
addEventHandler("YouAreNotAFK",root,-- Removing Message Event
function()-- Removing Message Function
removeEventHandler ( "onClientRender",root,You)-- Removing Message 1
removeEventHandler ( "onClientRender" , root ,txt)-- Removing Message 2
if isTimer(timer) then
killTimer(timer)-- Killing The Timer
end
end ) -- END of Removing Message Event


Server side

Code: [Select]
--***********************************--
--***********************************--
--      Anti AFK System         --
--            By PSN            --
--            Server Side            --
--***********************************--
--***********************************--

----------- CHANGEABLE
AFK_TIME = 1 -- the time that if the player didn't moved he will be AFK , in minutes .
AFK_TIMES = 5 -- afk times before the player get kicked .
SHOW,AFK_MSG = true -- show the afk message [true or false
msgs = true -- show messages on chat box ?
-----------

function onResourceStart()
--
outputDebugString("Anti-AFK By Al3grab | Started")
--
startCheck()
end
addEventHandler("onResourceStart",resourceRoot,onResourceStart)

function startCheck()
checkTimer = setTimer ( function()
for i,m in ipairs ( getElementsByType("player") ) do
local idle = getPlayerIdleTime(m)
if tonumber(idle) >= AFK_TIME * 60 * 1000  then
if not isPlayerAfk(m) then
-- the player is afk
triggerEvent("onPlayerAfk",m,m,idle)
end
else
local afk = isPlayerAfk(m)
if ( afk == true ) then
-- the player was afk and now he is back !
triggerEvent("onPlayerAfkBack",m,m)
end
end
end
end , 1000 , 0 )
end

addEvent("onPlayerAfk",true)
addEventHandler("onPlayerAfk",root,function ( Player , Time )
------
if SHOW then
if ( tostring ( AFK_MSG ) ) then
showAfkMessage(Player,true)
end
end
------
setPlayerAfk(Player,true)
------

end )

addEvent("onPlayerAfkBack",true)
addEventHandler("onPlayerAfkBack",root,function ( Player  )
setPlayerAfk(source,false)
------
showAfkMessage(source,false)
------
end )


function isPlayerAfk(Player)
local afk = getElementData(Player,"State-AFK") or false
return afk
end

function setPlayerAfk(Player,state)
setElementData(Player,"State-AFK",state or false)
end

function showAfkMessage(Player,state)
if state == true then ev = "YouAreAFK" else ev = "YouAreNotAFK" end
triggerClientEvent(Player,tostring(ev) or "YouAreAFK",Player)
end

function onAfkEnd(Player)
Player = Player or source
--
setElementData(Player,"AFKtime",getElementData(Player,"AFKtime") + 1 )
local afkTimes = getElementData(Player,"AFKtime")
if ( afkTimes and afkTimes >= AFK_TIMES ) then
kickPlayer(Player,"You Have Been Afk For : "..tonumber(AFK_TIME).." Minutes")
if msgs then outputChatBox("** #FFFF00"..getPlayerName(Player).."#FFFF00 Has Been kicked for being afk ["..afkTimes.."]",root,255,0,0,true) end
else
killPed(Player)
if msgs then outputChatBox("** #FFFF00"..getPlayerName(Player).."#FFFF00 Has Been slapped for being afk ["..afkTimes.."]",root,255,0,0,true) end

end
end
addEvent("KillAFK",true)
addEventHandler("KillAFK",root,onAfkEnd)

Meta

Code: [Select]
<meta>
<info author="Al3grab" version="2.0" type="script" name="Anti Away From Keyboard" description="Anti Away From Keyboard" />
<script src="Server.lua" type="server" />
<script src="Client.lua" type="client" />
</meta>
49
Military / Re: Military Forces Application [OPEN]
« Last post by pazimo on June 11, 2012, 02:58:13 pm »
1. Your in-game name:PSN
2. Your in-game account name:psnarayanan
3. Your age:16
4. Your Nationality: Indian
5. What are your worst skill?:Swimming
6. What is your best skill?:Shooting,arresting
7. What are your driving skills [1-10] ?:9/10
8. What are your weapons skills [1-10] ?:8/10
9. Your Hydra skills [1-10]:8/10
10. Your Hunter skills [1-10]:9/10
11. Do you understand all the Rules and Codes?:Yes
12. Something about yourself (Atleast 100 words):My name is PSN.I live in kerala in India.I love playing MTA:SA and i have a Cousin named Furious in game and he also play with me now he is going to be a member of the SARP team and we would like to join a good law team so i have applied to military forces.And i'm very much interested in Roleplaying like an Army man.And thats all.

Regards,
PSN✞
13. I will take orders from every higher rank as me:Yes
14. I will abuse my powers :No,Never
15. Why should we accept you in the Military Forces?Because Military force is the best law team i have ever seen and it going to be a respected team so i would like to join military forces
16. Your timezone:
50
Deleted Crap / Re: Suggest some bullshit... OH WAIT, SARP IS BULLSHIT LOL
« Last post by PSN✞ on June 11, 2012, 02:53:36 pm »
Vehicle health by PSN


Code: [Select]
----------------------------------------------------------------
-------------------- Digital Vehicle Health --------------------
-------------------- Scripted by PSN ----------------


function vehicleHealth()
    local vehicle = getPedOccupiedVehicle( localPlayer )
if ( vehicle ) then
local vehicleHealth = getElementHealth( vehicle )
local scx, scy = guiGetScreenSize()
if ( math.floor( vehicleHealth  / 10 ) ) > 70 then
-- If the vehicle health is higher then 70% the health is showed in a white color
dxDrawText( ( math.floor( vehicleHealth / 10 ) ) .. "% Health", scx - 125,scy - 70,scx,scx,tocolor(255,255,255,255),0.9, "bankgothic","right","top",false,false,false)
elseif ( math.floor( vehicleHealth / 10 ) ) > 40 and ( math.floor( vehicleHealth / 10 ) ) < 70 then
-- If the vehicle health is between 40% and 70% the health is showed in a orange color
dxDrawText( ( math.floor( vehicleHealth / 10 ) ) .. "% Health", scx - 125,scy - 70,scx,scx,tocolor(225,165,0,255),0.9, "bankgothic","right","top",false,false,false)
elseif ( math.floor( vehicleHealth / 10 ) ) < 40 then
-- If the vehicle health is lower then 40% the health is showed in a red color
dxDrawText( ( math.floor( vehicleHealth / 10 ) ) .. "% Health", scx - 125,scy - 70,scx,scx,tocolor(225,0,0,255),0.9, "bankgothic","right","top",false,false,false)
end
end
end
addEventHandler("onClientRender", root, vehicleHealth


Meta

Code: [Select]
<meta>
<info author="PSN" version="1.0" type="script" name="Vehicle Health" description="Vehicle Health" />

<script src="vehicleHealth.lua" type="client"/>
</meta>
Pages: 1 ... 3 4 [5] 6 7 ... 10