need help making a command - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: need help making a command (
/showthread.php?tid=354590)
need help making a command -
codebreaker23 - 27.06.2012
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
Код:
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;
}
The types are
Код:
2 = Materials
3 = Pot
4 = Crack
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?
Re: need help making a command -
[MM]RoXoR[FS] - 27.06.2012
Script Request Thread