This site has been archived and made available for preservation purposes. No edits can be made.

Results 1 to 7 of 7

Thread: Easy Command to get your position

  1. #1

    Post Easy Command to get your position

    Hi all...I made a little command thats going to help me build my server so i wanted to shere it.
    Here it is for all the lazy ones


    Code :
    public OnPlayerChat(ID, message{})
    {
      new str{MAX_CHAT_LENGTH};
     
      if(message{0} == '/' && strlen(message)>1)
      {
        new delim = strfind(message," "),
          str{MAX_CHAT_LENGTH},
          params{MAX_MESSAGE_LENGTH},
          len = strlen(message);
          strmid(str,message,1,delim==-1?len:delim);
        if(delim>1) strmid(params,message,delim+1,len);
            if(!strcmp(str,"getpos"))
            {
                  new Float:x, Float:y, Float:z;
                  GetPos(ID, x, y, z);
                  strformat(str,sizeof(str),true,"You are at X:%f Y:%f Z:%f", x, y, z,message);
                  ChatMessage(0,str);
                  return 0;
          }
         }
    }

    Thx to Xolitude and NeoPhoenix for command script!
    Last edited by KingIvan; 01-09-2013 at 07:29 AM.

  2. #2
    Command script, Me and NeoPhoenix. Mostly Neo. And nice script I may use this in time to come.

  3. #3
    Ty and sry i forgot your names xD

  4. #4
    Senior Member Volumed's Avatar
    Join Date
    Aug 2011
    Location
    Holland
    Posts
    1,010
    Blog Entries
    1
    Quote Originally Posted by KingIvan View Post
    Ty and sry i forgot your names xD
    Nobody blames you, I wish I was able to forget there name's sometimes.

  5. #5

  6. #6
    Volumed, why do you hurt me so

  7. #7
    Senior Member Volumed's Avatar
    Join Date
    Aug 2011
    Location
    Holland
    Posts
    1,010
    Blog Entries
    1


    NO HOMO

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •