znowu ja, t?py ja. witam bardzo serdecznie. Prosto z beczki: chodzi o to, ?e gracz wpisuje komende /wyslijapelacje <jakisteam>, i pokazuje mu sie na czacie wiadomsc, ze wyslal apelacje do tego teamu. A pragne tez, zeby gracz ktory jest w grupie acl "lidergang1" przez wlasnie wpisanie tej komendy przez gracza pierwszego (thePlayer) otrzymywal wiadomosc, ze gracz ktory wpisa? komend?, apeluje o do??czenie do teamu. Nah,dam ten kod, mam nadzieje nic na tym nie strace xD (dam piwko i respekt za pomoc oczywiscie ^.^)
[lua]
function wyslijApelacje(thePlayer, cmd, ...)
if (not ...) then
outputChatBox("#FFFFcaPodaj nazwe gangu, do ktorego chcesz dolaczyc", thePlayer, 255, 255, 255, true)
else
if ... ~= "gang1" and ... ~= "gang2" and ... ~= "gang3" and ... ~= "gang4" and ... ~= "gang5" and ... ~= (not ...) then
outputChatBox("#FFFFcaGang o podanej nazwie nie istnieje", thePlayer, 255, 255, 255, true)
else
if ... == "gang1"
or ... == "gang2"
or ... == "gang3"
or ... == "gang4"
or ... == "gang5" then
outputChatBox("#FFFFcaWys?a?e? apelacje o gang ".. ..., thePlayer, 255, 255, 255, true)
else
if ... == "gang1" then
setElementData(thePlayer, "chcedogang1", true)
setElementData(thePlayer, "chcedogang2", false)
setElementData(thePlayer, "chcedogang3", false)
setElementData(the... |