Interior ID's
#4

You can use this one:
PHP код:
if(strcmp(cmd"/gotopos"true) == 0)
    {
        
tmp strtok(cmdtext,idx);
        if (!
strlen(tmp))
         {
            
SendClientMessage(playeridCOLOR_GREY"USAGE: /gotopos [InteriorId] [x] [y] [z]");
            return 
1;
          }
        new 
int_id;
        
int_id strval(tmp);
        
tmp strtok(cmdtext,idx);
        if (!
strlen(tmp))
          {
            
SendClientMessage(playeridCOLOR_GREY"USAGE: /gotopos [InteriorId] [x] [y] [z]");
            return 
1;
          }
        new 
Float:int_x;
        
int_x floatstr(tmp);
        
tmp strtok(cmdtext,idx);
        if (!
strlen(tmp))
          {
            
SendClientMessage(playeridCOLOR_GREY"USAGE: /gotopos [InteriorId] [x] [y] [z]");
            return 
1;
          }
        new 
Float:int_y;
        
int_y floatstr(tmp);
        
tmp strtok(cmdtext,idx);
        if (!
strlen(tmp))
          {
            
SendClientMessage(playeridCOLOR_GREY"USAGE: /gotopos [InteriorId] [x] [y] [z]");
            return 
1;
          }
        new 
Float:int_z;
        
int_z floatstr(tmp);
        
format(stringsizeof(string), "You have been teleported to pos: %d, x=%1.5f, y%=1.5f, z=%1.5f"int_idint_xint_yint_z);
        
SendClientMessage(playeridCOLOR_YELLOWstring);
        
SetPlayerPos(playeridint_xint_yint_z);
        
SetPlayerInterior(playeridint_id);
        return 
1;
    } 
Reply


Messages In This Thread
Interior ID's - by iiKyle - 06.08.2011, 07:23
Re: Interior ID's - by WoodPecker - 06.08.2011, 07:27
Re: Interior ID's - by iiKyle - 06.08.2011, 07:29
Re: Interior ID's - by WoodPecker - 06.08.2011, 07:34
Re: Interior ID's - by Shockey HD - 06.08.2011, 07:36
Re: Interior ID's - by iiKyle - 06.08.2011, 07:37
Re: Interior ID's - by Shockey HD - 06.08.2011, 07:38
Re: Interior ID's - by iiKyle - 06.08.2011, 07:41
Re: Interior ID's - by Shockey HD - 06.08.2011, 07:46
Re: Interior ID's - by MadeMan - 06.08.2011, 08:13

Forum Jump:


Users browsing this thread: 5 Guest(s)