Help.. Requries Dini scripter(SMART ) - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help.. Requries Dini scripter(SMART ) (
/showthread.php?tid=116027)
Help.. Requries Dini scripter(SMART ) -
SampGuy - 27.12.2009
pawn Код:
if(strcmp(cmd, "/fstats", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /fstats [Faction ID] [Variable] [Name/ID]");
return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /fstats [Faction ID] [Variable] [Name/ID]");
return 1;
}
new file[258];
new name[258];
new faction = strval(tmp);
new variable = strval(tmp);
new ammount = strtok(tmp);
if (PlayerInfo[playerid][pAdmin] >= 2)
{
if(faction == 1)
{
format(file,"f1.ini");
}
if(faction == 2)
{
format(file,"f2.ini");
}
if(faction == 3)
{
format(file,"f3.ini");
}
if(faction == 4)
{
format(file,"f4.ini");
}
if(faction == 5)
{
format(file,"f5.ini");
}
if(faction == 6)
{
format(file,"f6.ini");
}
if(faction == 7)
{
format(file,"f7.ini");
}
if(faction == 8)
{
format(file,"f8.ini");
}
if(faction == 9)
{
format(file,"f9.ini");
}
if(faction == 10)
{
format(file,"f10.ini");
}
dini_Set(file,variable,ammount);
}
}
return 1;
}
I need that to do this
/fstats [Faction ID] [Variable] [Name/ID]
Re: Help.. Requries Dini scripter(SMART ) -
[HiC]TheKiller - 27.12.2009
Please explain this further:
pawn Код:
/fstats [Faction ID] [Variable] [Name/ID]
I can make you a script using DCMD after.