27.06.2012, 10:12
hello i need help making a command.. might be imple but ive been up too long..
would like the command named crepoint
and to do the fallowing here is the gamemodes update points.cfg
The types are
Vulnerable, Owner And Capper name = None Automaticly
Name = Name Placed In
matpoint = number put in
Cords grabbed and put into it also
Syntax Style idea
/crepoint [type] [name] [matpoint number]
anyone think they can help me out?
would like the command named crepoint
and to do the fallowing here is the gamemodes update points.cfg
Код:
UpdatePoints() { new idx; new File: file2; while (idx < sizeof(Points)) { new coordsstring[256]; format(coordsstring, sizeof(coordsstring), "%f|%f|%f|%d|%d|%s|%s|%s|%d\n", Points[idx][Pointx], Points[idx][Pointy], Points[idx][Pointz], Points[idx][Type], Points[idx][Vulnerable], Points[idx][Owner], Points[idx][CapperName], Points[idx][Name], Points[idx][MatPoint]); if(idx == 0) { file2 = fopen("points.cfg", io_write); } else { file2 = fopen("points.cfg", io_append); } fwrite(file2, coordsstring); idx++; fclose(file2); } return 1; }
Код:
2 = Materials 3 = Pot 4 = Crack
Name = Name Placed In
matpoint = number put in
Cords grabbed and put into it also
Syntax Style idea
/crepoint [type] [name] [matpoint number]
anyone think they can help me out?