![]() |
Staff Block Warp
Is it possible for me to have something like:
if (playertouchsme){ setlevel2 #s(this.blocklevel),#s(this.blockx),#s(this.blocky ); } if (playerchats && strequals(#c,/blockwarp) && strequals(#a,bscharff)){ tokenize #c; #t(1) = this.blocklevel; #t(2) = this.blockx; #t(3) = this.blocky; } or possibly with if (playertouchsme){ tokenize #c; #t(1) = this.tempwarpaccount; with (findplayer#s(this.tempwarpaccount)){ setlevel2 #s(this.blocklevel),#s(this.blockx),#s(this.blocky ); } } This Is Just My Example, If This Wouldn't Work, Please Provide A Code That Would! :) or, If One Would Work, Please Tell Me Which One :) Thanks! |
I'm not quite getting your script... You use a chat command, tokenize the players chat then set the tokens as strings which defies the point of tokenizing #c at all.
What are you trying to achieve? |
i think he wants to warp a "block" to a level...
|
setlevel2 in GS1 requires conversion to float for the x and y.
PHP Code:
|
Quote:
I think he was trying to achieve PHP Code:
|
Quote:
PHP Code:
|
Quote:
PHP Code:
Do you want to be able to say a location then be warped there when you touch the block? If so PHP Code:
|
No, No, No.
I'm Trying Like If A Player Touches The Block Then They Are Warped To this.blockwarpx this.blockwarpy this.blockwarplevel But Thanks :P |
yeah, that's it twinny!
Thanks! |
| All times are GMT +2. The time now is 02:36 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.