What's new

Skrypt na most na storage value

Status
Not open for further replies.

Erevius

Advanced User
Joined
Mar 15, 2009
Messages
150
Reaction score
10
Tak jak w tytule, prosi?bym o podanie mi skryptu na tile, przez kt?re mo?na przej?? je?eli storage value playera wynosi np. 1005 = 1. Sam napisa?em taki skrypt ale wyskakuje b??d wi?c prosze oto was!
 

Erevius

Advanced User
Joined
Mar 15, 2009
Messages
150
Reaction score
10
Odp: Skrypt na most na storage value

~Bring
~Up
~My
~Post
 

Oskar

Forum friend
Joined
Jan 24, 2009
Messages
2,256
Reaction score
331
Odp: Skrypt na most na storage value

PHP:
local storage = 1005
local wartosc = 1
local uniqueid_kratki = 1111

function onStepIn(cid, item, position, fromPosition)
if item.uid == uniqueid_kratki then
	if getPlayerStorageValue(cid, storage) ~= wartosc then
		doTeleportThing(cid, fromPosition)
	end
end
return true
end
 
Status
Not open for further replies.
Top