19.10.2013, 18:26
pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
GetPlayerName(playerid, pname, sizeof(pname));
format(playerfile, sizeof(playerfile), "Licenses/%s.ini",pname);
dini_IntSet(playerfile, "Car License", LicenseInfo[playerid][Car]);
return 1;
}
public OnPlayerConnect(playerid)
{
GetPlayerName(playerid, pname, sizeof(pname));
format(playerfile, sizeof(playerfile), "Licenses/%s.ini",pname);
return 1;
}
public OnPlayerRequestSpawn(playerid)
{
GetPlayerName(playerid, pname, sizeof(pname));
format(playerfile, sizeof(playerfile), "Licenses/%s.ini",pname);
LicenseInfo[playerid][Car] = dini_Int(playerfile, "Car License");
return 1;
}