TH

[Talkactions] /b Sem Aparecer Nome

By TheWil, 13 de mar. de 2012 in Archived

6
668
TheWilT
13 de março de 2012 às 23:15

Olá queria que alguém fizesse um /bt estilo o do /b normal mas sem aparecer o nome do Player apenas: um com esse:

[Tourneament]:

e um com:

[Administrative Notice]:

 

Ok?

obrigado estarei dando REP+ em que me ajudar.

Edited Março 13 by TheWil

ZmovirZ
13 de março de 2012 às 23:21

nem testei[q

 

local config = {

acess = 5,

}

 

function onSay(cid, words, param, channel)

if(param == "") then

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command requires param.")

return TRUE

end

 

if(getPlayerAcess(cid, config.acess) == TRUE) then

doBroadcastMessage("[Administrative Notice]: " .. param .. "", MESSAGE_EVENT_ADVANCE)

else

doPlayerSendCancel(cid, "Voce precisa ser god para usar esse comando.")

end

 

return TRUE

end

Edited Março 13 by Zmovir

TheWilT
13 de março de 2012 às 23:29

[13/03/2012 23:28:29] [Error - TalkAction Interface]

[13/03/2012 23:28:29] data/talkactions/scripts/administrativenews.lua:onSay

[13/03/2012 23:28:29] Description:

[13/03/2012 23:28:29] data/talkactions/scripts/administrativenews.lua:11: attempt to call global 'getPlayerAcess' (a nil value)

[13/03/2012 23:28:29] stack traceback:

[13/03/2012 23:28:29] data/talkactions/scripts/administrativenews.lua:11: in function <data/talkactions/scripts/administrativenews.lua:5>

 

Esse erro da ai to usando 8.54 o servidor, tira esse Playeracess pra min? pois boto esse acess no.. talkactions.xml obrigado ;D

ZmovirZ
13 de março de 2012 às 23:35
function onSay(cid, words, param, channel)

if(param == "") then

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command requires param.")

return TRUE

end

 

doBroadcastMessage("[Administrative Notice]: " .. param .. "", MESSAGE_EVENT_ADVANCE)

end

 

return TRUE

end

 

ou

function onSay(cid, words, param, channel)

if(param == "") then

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command requires param.")

return TRUE

end

 

doBroadcastMessage("[Administrative Notice]: " .. param .. "", MESSAGE_EVENT_ADVANCE)

return TRUE

end

 

testa os 2 ai

TheWilT
13 de março de 2012 às 23:50
function onSay(cid, words, param, channel)

if(param == "") then

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command requires param.")

return TRUE

end

 

doBroadcastMessage("[Administrative Notice]: " .. param .. "", MESSAGE_EVENT_ADVANCE)

end

 

return TRUE

end

 

ou

function onSay(cid, words, param, channel)

if(param == "") then

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command requires param.")

return TRUE

end

 

doBroadcastMessage("[Administrative Notice]: " .. param .. "", MESSAGE_EVENT_ADVANCE)

return TRUE

end

 

testa os 2 ai

 

Obrigado, já dei REP+

 

Zmovir teria como tu fazer aquele CMD de puxar o carinha para tal posição e ele fica imóvel e depois eu dar 1 comando para ele voltar a se mexer?

 

Obrigado não precisa desse negocio de PlayerAcess não valeu ai ;D

ZmovirZ
13 de março de 2012 às 23:52
function onSay(cid, words, param, channel)

if(param == "") then

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command requires param.")

return TRUE

end

 

doBroadcastMessage("[Administrative Notice]: " .. param .. "", MESSAGE_EVENT_ADVANCE)

end

 

return TRUE

end

 

ou

function onSay(cid, words, param, channel)

if(param == "") then

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command requires param.")

return TRUE

end

 

doBroadcastMessage("[Administrative Notice]: " .. param .. "", MESSAGE_EVENT_ADVANCE)

return TRUE

end

 

testa os 2 ai

 

Obrigado, já dei REP+

 

Zmovir teria como tu fazer aquele CMD de puxar o carinha para tal posição e ele fica imóvel e depois eu dar 1 comando para ele voltar a se mexer?

 

Obrigado não precisa desse negocio de PlayerAcess não valeu ai ;D

 

ja postei la d auma olhada no topico vc so adciona pra teleporta