17.03.2011, 17:54
How to make that this saves to "server/scriptfiles/Fightstyles/"
I try to find fith search dini.inc but it gets other stuff... i can't find
Please help i hope this is easy
Код:
public OnPlayerConnect(playerid)
{
SendClientMessage(playerid, COLOR_RED, "This server contains a system that allows you to choose a style for the fight, use /FightStyles to choose your!");
GetPlayerName(playerid,pname,30);
if(!dini_Exists(pname))
dini_Create(pname);
else if(dini_Exists(pname))
{
FightStyle[playerid] = dini_Int(pname,"FightStyle");
}
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
GetPlayerName(playerid,pname,30);
dini_IntSet(pname,"FightStyle", FightStyle[playerid]);
return 1;
}
Please help i hope this is easy

