!pos

Status
Zamknięty.

muiosh997

Active User
Zarejestrowany
Dołączył
Maj 30, 2009
Posty
74
Liczba reakcji
7
Witam. Potrzebuj? skrypta ,kt?ry wskazuje moj? pozycje. Np. Your Position is x y z REPUT
 
Odp: !pos

PHP:
function onSay(cid, words, param, channel)
doPlayerSendCancel(cid, getPlayerPosition(cid))
end
 
Odp: !pos

yyy Serva mi wypierdala jak mam tego skrypta. Pisze Pos i automatycznie silnik sie wylacza
 
Odp: !pos

Tutaj masz troch? bardziej zaawansowan? wersje tego skryptu, mo?e r?wnie? pokazywa? pozycje innych graczy:

Kod:
local config = {
	access = 3
}

function onSay(cid, words, param, channel)
	local pid = cid
	if(param ~= '' and getPlayerAccess(cid) >= config.access) then
		pid = getPlayerByNameWildcard(param)
		if(not pid or (isPlayerGhost(pid) and getPlayerGhostAccess(pid) > getPlayerGhostAccess(cid))) then
			doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player " .. param .. " is not currently online.")
			return true
		end
	end

	local position = getCreaturePosition(pid)
	doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, (pid == cid and "Your" or getCreatureName(pid)) .. " current position is [X: " .. position.x .. " | Y: " .. position.y .. " | Z: " .. position.z .. "]")
	return true
end
 
Status
Zamknięty.
Back
Do góry