Estou tentando por esse script por acl mas nn consigo!
Alguém pra me ajdar?
procurei em diversos foruns
pegar = createMarker(2747.1008300781, -1461.0627441406, 1.96875, "cylinder", 1.5,255,255,255,50)
function pegarFarda(player)
if isElementWithinMarker(player, pegar) then
if (getPlayerSkin(player) == 14) then
outputChatBox("#0077FF[TDJ] #ffffffVocê ja está com a farda.", player, 255,255,255, true)
else
setPlayerSkin(player,14)
outputChatBox("#0077FF[TDJ] #ffffffVocê vestiu a roupa!!.", player, 255,255,255, true)
end
end
end
addCommandHandler("skin", pegarFarda)
function tirarFarda(player)
if isElementWithinMarker(player, pegar) then
setPlayerSkin(player,0)
outputChatBox("#0077FF[TDJ] #ffffffVocê tirou sua Farda.", player, 255,255,255, true)
end
end
addCommandHandler("tskin", tirarFarda)
function pegarArmas(player)
if isElementWithinMarker(player, pegar) then
giveWeapon ( player, 24, 5000, true ) --Pistola
giveWeapon ( player, 30, 5000, true ) --M4
giveWeapon ( player, 25, 5000, true ) --Shotgun
giveWeapon ( player, 28, 5000, true ) --MP5
giveWeapon ( player, 1, 5000, true ) --Cacetete
outputChatBox("#0077FF[TDJ] #ffffffVocê se equipou com as armas.", player, 255,255,255, true)
end
end
addCommandHandler("armas", pegarArmas)
addEventHandler("onMarkerHit", pegar,
function(player)
if getElementType(player) == "player" then
outputChatBox("#0077FF=========================================================", player, 255,255,255, true)
outputChatBox("#0077FF[TDJ] #ffffffOlá, seja bem vindo a TDJ, pegue aqui suas armas e roupas.", player, 255,255,255, true)
outputChatBox("#0077FF[TDJ] #ffffffFarda: #727272/skin", player, 255,255,255, true)
outputChatBox("#0077FF[TDJ] #ffffffTirar roupa: #727272/tskin", player, 255,255,255, true)
outputChatBox("#0077FF[TDJ] #ffffffArmas: #727272/armas", player, 255,255,255, true)
outputChatBox("#0077FF=========================================================", player, 255,255,255, true)
end
end)