[Help] Need help with /telep xyz
#1

OKey basically i want to make a command with zcmd like: /telep XYZ.
Example: /telep 0.0,0.0,0.0 and then it will teleport there.
I know how to make the command, but i dont know how to make cmd input to float

Heres my current code:

Код:
CMD:telep(M, params[])
{
  
	new idx;
        new xyz[256];
	

    
   
    xyz = strtok(params, idx);
    
    if(isnull(params))
	{
		Kiri(M, RED, "Hint: /telep [x,y,z]");
		return 1;
	}
	

    
	
	if(User[M][Admin] < 1338) { Kiri(M,RED,"You dont have enough permissions!"); return 1; }
	
	Kiri(M,WHITE,"* Teleported");
	SetPlayerPos(M, xyz);


	return 1;
}
Reply


Messages In This Thread
[Help] Need help with /telep xyz - by Andrus99 - 01.04.2012, 11:30
Re: [Help] Need help with /telep xyz - by Boooth - 01.04.2012, 11:51
Re: [Help] Need help with /telep xyz - by Andrus99 - 01.04.2012, 12:12
Re: [Help] Need help with /telep xyz - by Tanush123 - 01.04.2012, 13:45
Re: [Help] Need help with /telep xyz - by Andrus99 - 02.04.2012, 12:02
Re: [Help] Need help with /telep xyz - by Andrus99 - 03.04.2012, 11:59
Re: [Help] Need help with /telep xyz - by sjvt - 03.04.2012, 12:10
Re: [Help] Need help with /telep xyz - by blank. - 03.04.2012, 12:16
Re: [Help] Need help with /telep xyz - by ReneG - 03.04.2012, 12:21
Re: [Help] Need help with /telep xyz - by Tanush123 - 03.04.2012, 23:29

Forum Jump:


Users browsing this thread: 1 Guest(s)