function premiumchat(player, cmd, premiummessage)
if premiumchat then
for k, players in ipairs(getElementsByType("Premium")) do
outputChatBox("<Premium>" .. table.concat({cbmessage}, " "), players, 255, 255, 0)
end
end
end
addCommandHandler("premiumchat", premiumchat)
W tym 2 skrypcie jak zrobic zeby tylko grupa premium widzia?a?
Widz?, ?e korzystasz z mojego skryptu na cbradio z tematu @down(tak samo napisane i cbmessage z outputChatBox ). Powiem tak, nie ma takiego elementu jak premium .
O to kod:
function premiumchat(player, cmd, premiummessage)
if premiumchat then
for k, players in ipairs(getElementsByType("player")) do
if (Sprawdzasz czy "players" jest w Premium(pisz? tak bo nie wiem czy cz?onkostwo premium jest w mysql, sql, acl czy w accountData) then
outputChatBox("<Premium>" .. table.concat({premiummessage}, " "), players, 255, 255, 0)
end
end
end
end
addCommandHandler("premiumchat", premiumchat)
function premiumchat(player, cmd, premiummessage)
if premiumchat then
for k, players in ipairs(getElementsByType("player")) do
if players acl then
outputChatBox("<Premium>" .. table.concat({premiummessage}, " "), players, 255, 255, 0)
end
end
end
end
addCommandHandler("premiumchat", premiumchat)
function premiumchat(player, cmd, premiummessage)
if premiumchat then
for k, players in ipairs(getElementsByType("player")) do
if (isObjectInACLGroup(getAccountName(getPlayerAccount(players)), getACLGroup("Premium"))) then
outputChatBox("<Premium>" .. table.concat({premiummessage}, " "), players, 255, 255, 0)
end
end
end
end
addCommandHandler("premiumchat", premiumchat)
Nie możesz pisać nowych tematów Nie możesz odpowiadać w tematach Nie możesz zmieniać swoich postów Nie możesz usuwać swoich postów Nie możesz głosować w ankietach