24.04.2009, 13:46
I want to make a cmd like /addteleport which i will type
/addteleport x y z interiorX interiorY interiorZ description interiorid
and after that it will add a line on my file called teleports.cfg
like that
1836.1278|-1682.9248|13.3609|493.7652|-24.4901|1000.6797|~y~Alhambra|17
Can anyone help me to make that cmd?
I know that the basic code is something like, but what about all of my parameters?
/addteleport x y z interiorX interiorY interiorZ description interiorid
and after that it will add a line on my file called teleports.cfg
like that
1836.1278|-1682.9248|13.3609|493.7652|-24.4901|1000.6797|~y~Alhambra|17
Can anyone help me to make that cmd?
I know that the basic code is something like, but what about all of my parameters?
pawn Код:
new File:hFile;
hFile = fopen("/files/teleports.cfg", io_append);
fwrite(hFile, string);
fclose(hFile);