cant teleport without writing VALUE
AMX Mod X version 1.9.0.5294
Exe build: 19:52:19 Aug 3 2020 (8684) I will explain myself again: I have CMD ADMIN As you can see in the code I have @all,target and more that the beginning of the command is !teleport for example: !teleport @all cheezpuff > This makes everyone teleported to me But if for example I do !teleport cheezpuff cheezpuff (without writing ORIGIN number) It makes me teleported to a small screen as if I've been tricked into myself. I want it to block the option But if I do !teleport cheezpuff 200 200 > It teleported me to Origin 0 on the map !teleport chee 200 200 200 > That Origin will work !teleport name name The problem is that if I do these command without writing origin the player will still be teleported to a certain place (random origin), how can this be blocked PHP Code:
HTML Code:
if (parse(toTarget, cOriginX, charsmax(cOriginX), cOriginY, charsmax(cOriginY), cOriginZ, charsmax(cOriginZ)) == 3) CONSOLE CHAT: print my name when used !teleport name Quote:
|
Re: cant teleport without writing VALUE
any?
|
Re: cant teleport without writing VALUE
i don't understand your question. so you want to teleport yourself to.... yourself?
expecting you wanted to write !teleport myname anotherplayername check if the player is alive, use get_user_origin to get his origin and set your origin to player origin. |
Re: cant teleport without writing VALUE
You really need to work on making your posts more understandable. Maybe simply write something to the effect of: "I want this plugin to do X". Also, please just post the whole plugin (if it's already on the forum you merely need to post a link to it). If you modified an existing plugin, post the link as well as your version of the plugin (attach .sma file).
|
Re: cant teleport without writing VALUE
Quote:
Quote:
Link Code: https://forums.alliedmods.net/showpo...70&postcount=5 |
All times are GMT -4. The time now is 11:02. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.