01.04.2012, 11:30
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:
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;
}


