What's new

Przerobienie skryptu pomoc

panczo 1995

Advanced User
Joined
Apr 5, 2009
Messages
383
Reaction score
13
Siema mam problem z przerobieniem skryptu chce zrobi? ?eby tylko mo?na by?o go u?ywa? w pz
local pos = {x=402,y=386,z=6}
function onSay(cid, words, param, channel)
doTeleportThing(cid,pos)
doSendMagicEffect(getThingPos(cid),10)
return true
end
 

Oskar

Forum friend
Joined
Jan 24, 2009
Messages
2,256
Reaction score
331
Odp: Przerobienie skryptu pomoc

PHP:
local pos = {x=402,y=386,z=6} 
local storage = 5436
function onSay(cid, words, param, channel)
if getPlayerStorageValue(cid, storage) == -1 then
	doTeleportThing(cid,pos)
	doSendMagicEffect(getThingPos(cid),10)
	setPlayerStorageValue(cid, storage, 0)
end
return true
end

#down
Wydawa?o mi si?, ?e chce by mo?na by?o tylko raz u?y? xd Dzi?ki.
 
Last edited:

andy1995

Senior User
Joined
Apr 12, 2009
Messages
602
Reaction score
100
Odp: Przerobienie skryptu pomoc

@up
Yyy... chyba sie pomyliles xD

PHP:
local pos = {x=402,y=386,z=6}
function onSay(cid, words, param, channel)
if(getTilePzInfo(getPlayerPosition(cid))) then  
doTeleportThing(cid,pos)
doSendMagicEffect(getThingPos(cid),10)
else
doPlayerSendCancel(cid,"You can teleport only if you are in PZ")
end
return true
end
 
Top