-
Posts
1,412 -
Joined
-
Last visited
-
Days Won
2
Everything posted by WASSIm.
-
tell me what your resolution !
-
hi guys, i have question, any event can chuck on ped or vehicle spawned ?
-
he want get account from account name
-
with: getAccount
-
getPlayerTeam is return team element
-
put your function command "afk"
-
EDIT try this function afkList (player) local afkplayers = { } for i,thePlayer in ipairs(getElementsByType("player")) do if (getElementData(thePlayer, "AFK")) then table.insert(afkplayers, thePlayer) end end if (#afkplayers > 0) then outputChatBox("List of AFK Players:", player, 50, 255, 50, true) outputChatBox("---------------------",player, 50,255, 50, true) for i,thePlayer in ipairs(afkplayers) do local name = getPlayerName(thePlayer) outputChatBox("*"..name, thePlayer, 55, 255,55, true) end outputChatBox("---------------------",player, 50,255, 50, true) else outputChatBox("There's no Players AFK", player, 55, 255,55, true) end end addCommandHandler("afklist", afkList)
-
try this function afkList (player) local afkplayers = { } for i,thePlayer in ipairs(getElementsByType("player")) do if (getElementData(thePlayer, "AFK") > 0) then table.insert(afkplayers, thePlayer) end end if (#afkplayers > 0) then outputChatBox("List of AFK Players:", player, 50, 255, 50, true) outputChatBox("---------------------",player, 50,255, 50, true) for i,thePlayer in ipairs(afkplayers) do local name = getPlayerName(thePlayer) outputChatBox("*"..name, thePlayer, 55, 255,55, true) end outputChatBox("---------------------",player, 50,255, 50, true) else outputChatBox("There's no Players AFK", player, 55, 255,55, true) end end addCommandHandler("afklist", afkList)
-
we don't know what gang system you're using
-
slm lolad, ya5i mafama 7ad honi ?
-
use Textdisplay
-
read this: https://wiki.multitheftauto.com/wiki/Meta.xml
-
check this: viewtopic.php?f=91&t=48128&p=475863&hilit=Dx+Edit+Box#p475963
-
you can create weapon with same command but problem if player joined server after create weapon will don't see him --> Client local weapons = { } function turret(thePlayer) if not (weapon[thePlayer]) then local x, y, z = getElementPosition(thePlayer) weapon[thePlayer] = createWeapon("m4", x, y, z) setWeaponState(weapon[thePlayer],"firing") attachElements(weapon[thePlayer], thePlayer, 0, 0, 1.5) else destroyElement (weapon[thePlayer]) weapon[thePlayer] = nil end end addEvent("turret", true) addEventHandler("turret", root, turret) --> Server function turret(thePlayer) triggerClientEvent(root, "turret", thePlayer) end addCommandHandler("turret", turret)
-
ok thanks guys anyway i do what show me novo
-
thank i was make like this, but why its show random keys ?
-
this user upload stolen/same on community resources https://community.multitheftauto.com/ind ... &id=370174 DONE
-
if use pairs its show me random. this what show me on chat
-
hi guys i have problem if use pairs its working but if use ipairs don't working on loop premissons = { ["Founder"] = { ["info"] = true, ["mote"] = true, ["kick"] = true, ["warn"] = true, ["withdraw"] = true, ["deposit"] = true, ["color"] = true, ["logs"] = true, ["invite"] = true }, ["Leader"] = { ["info"] = true, ["mote"] = true, ["kick"] = true, ["warn"] = true, ["withdraw"] = false, ["deposit"] = true, ["color"] = true, ["logs"] = true, ["invite"] = true }, ["Senior"] = { ["info"] = false, ["mote"] = true, ["kick"] = true, ["warn"] = true, ["withdraw"] = false, ["deposit"] = true, ["color"] = false, ["logs"] = false, ["invite"] = true }, ["Regular"] = { ["info"] = false, ["mote"] = false, ["kick"] = false, ["warn"] = false, ["withdraw"] = false, ["deposit"] = true, ["color"] = false, ["logs"] = false, ["invite"] = false }, ["New"] = { ["info"] = false, ["mote"] = false, ["kick"] = false, ["warn"] = false, ["withdraw"] = false, ["deposit"] = true, ["color"] = false, ["logs"] = false, ["invite"] = false }, ["Trial"] = { ["info"] = false, ["mote"] = false, ["kick"] = false, ["warn"] = false, ["withdraw"] = false, ["deposit"] = true, ["color"] = false, ["logs"] = false, ["invite"] = false } } for rank, premisson in ipairs(premissons) do outputChatBox(rank) outputChatBox("aaa") end
-
nice bump dude, you'r scripter you can edit it and removed it
-
we don't help about leaked scripts
