• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

napis - pomaranczowy

Mistrz444

Banned User
Joined
Apr 4, 2013
Messages
15
Reaction score
0
czesc. jak zrobic aby co jakis czas pojawial sie napis kolorem pomaranczowym u kazdego gracza ? nie chce cos takiego jak broadcast , tylko taki pomaranczowy, i nie na ekranie a tam na dole w tej konsoli...
 
czesc. jak zrobic aby co jakis czas pojawial sie napis kolorem pomaranczowym u kazdego gracza ? nie chce cos takiego jak broadcast , tylko taki pomaranczowy, i nie na ekranie a tam na dole w tej konsoli...
doPlayerSendTextMessage(cid, 19, "Co ma pisac.")
 
Lua:
function onThink(cid, interval, lastExecution)
	doPlayerSendTextMessage(cid, 19, "Co ma pisac.") 
	return TRUE
end

wywala Player not found
 
Lua:
function onThink(cid, interval, lastExecution)
	doPlayerSendTextMessage(cid, 19, "Co ma pisac.") 
	return TRUE
end

wywala Player not found
Np.
function onLogin(cid)
if getPlayerVipDays(cid) >= 1 then
doPlayerSendTextMessage(cid, 19, "You have ".. getPlayerVipDays(cid) .." vip days left.")
end
if getPlayerVipDays(cid) < 1 then
doPlayerSetStorageValue(cid, 85863, -1)
end
return true
end

- - - Updated - - -

Spróbuj tak: doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "TEXT")
 
jak to jakas lipa jest, mi sie zdaje ze warunek trzeba jakis dac...ale kurde...jak ja nie chce warunku , a jedynie jak minie x czasu to ma dawac napis do kazdego napis...bez zbędnych if cośtam... bo po co to? po co ma sprawdzac jakies Vipy niepotrzebnie i obciążać PC, zamiast po prostu aby co x czasu wysylalo ten napis..
 
Wydaje mi się, że ta funkcja działa tylko w: -OnUse, StepIn, OnLogin itp :)

- - - Updated - - -

Chyba wiem, napisz mi na priv po 17:20 :)

- - - Updated - - -

doBroadcastMessage('Powinno dzialac na 99%... '', 19)
 
tak mam obecnie, i wali to na ekranie napisy...a ja chce tylko tam na dole :p bez tego na ekranie głównym (jedynie w dolnym okienku rozmów, nigdzie wiecej)

@edit
jednak to działa, bo efekt 19 nie wali na ekranie napisu :p (heh)
 
Co jeden to madrzejszy 8)
Globalevent -> getOnlinePlayers() -> doPlayerSendTextMessage(cid, type, text)
 
Co jeden to madrzejszy 8)
Globalevent -> getOnlinePlayers() -> doPlayerSendTextMessage(cid, type, text)

więc wg Cb to powinno wyglądać tak?
Lua:
function onThink(cid,interval, lastExecution)
      getOnlinePlayers()
	doPlayerSendTextMessage("tekst.",19)
	return TRUE
end
bo nie działa taką metodą
 
Back
Top