95 /5000
Resultados de tradução
You need to create an acl so that players in it can access the command!
Sorry for my English,
use a function:
https://wiki.multitheftauto.com/wiki/IsObjectInACLGroup
function clan(thePlayer)
local accName = getAccountName(getPlayerAccount(thePlayer))
if isObjectInACLGroup("user." ..accName, aclGetGroup("CLAN")) then
---- code
else
return outputChatBox("comando apenas jogadores do clan")
end
end
AddCommandHandler("clan", clan)
function freeze()
if ( getPlayerMoney (source) >= 100) then
respawnVehicle(veiculo)
setElementFrozen(veiculo, true)
takePlayerMoney(source, 50)
end
end
Try it like this, my friend.
PontoRespawn =
{
{local1},
{local2},
{local6},
{local4},
}
addEventHandler("onPlayerSpawn", getRootElement(),
function ()
setElementPosition(source, unpack ( PontoRespawn [ math.random ( #PontoRespawn ) ] ))
end
)
se quiser Colocar Mais Locais Basta Copia a Gaveta da tabela acima e colocar as coordenadas desejadas de onde quer que os players nascer!