![]() |
with (getplayer(acc)
Hello, i want to learn how to use getplayer... is it like
if (playerchats&&strequals(#a,mhermher)) { if (startswith(show stats,#c)) { tokenize #c; with (getplayer(#t(1))) { showimg 200,@Server@#t(1)'s sword power: #v(playerswordpower),x,y; } will this like show the swordpower for the player i ásked for? like if i say show stats STefan will ti show stefans swordpower? same as this: if (playerchats&&strequals(#a,mhermher)) { if (startswith(control tag,#c)) { tokenize #c; with (getplayer(#t(1))) { setplayerprop #g,#t(2); } this is like if i say control tag mhermher leet will my account get the tag leet? This was just an example i just want to know how getplayer works |
this may or may not work:
NPC Code: its all serverside stuff, but i am not sure my script will work .... |
Quote:
at this moment the tokenscount is 0 so the for loop will not be accesed... and the tokenize in the function not too... so nothing would happen... |
Quote:
|
Re: with (getplayer(acc)
Quote:
|
| All times are GMT +2. The time now is 01:05 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.