What's new

Skrypty & Kody Prosta funkcja GetPlayerPosition(cid) - TALKACTIONS

Status
Not open for further replies.

WhitePrrince

Advanced User
Joined
Sep 2, 2009
Messages
251
Reaction score
4
Witam !

Mam problem gdy? nie wchodzi mi zdefiniowanie pozycji, chodzi o to aby dzia?anie dalszej cz??ci skryptu zale?a?o od tego czy grac stoi na wyznaczonej pozycji.


Code:
if getPlayerPosition(cid) == {x=32073, y=31858, z=8} then

pr?bowa?em wstawia? nawiasy np.


Code:
if(getPlayerPosition(cid) == {x=32073, y=31858, z=8}) then

ale i to nie dzia?a.

Prosze o pomoc, og?lnie skrypt ma by? w TALKACTIONS, po wpisaniu danej komendy.


Pozdrawiam.
 

Kahras

Senior User
Joined
Aug 26, 2011
Messages
2,714
Reaction score
167
Age
25
Odp: Prosta funkcja GetPlayerPosition(cid) - TALKACTIONS

[lua] local pid = getThingFromPos({x=x, y=y, z=z, stackpos = 255}).uid
if isPlayer(pid) then
end[/lua]
 
Status
Not open for further replies.
Top