05.01.2018, 12:42
so as i understand correctly you don't save this reason?
When it isn't saved, you can not get this data. is has to be saved somewhere.
example on saving in y_ini: (requires folder Banishments in scriptfiles)
Onplayerdisconnect:
Example on loading it into your script.
When it isn't saved, you can not get this data. is has to be saved somewhere.
example on saving in y_ini: (requires folder Banishments in scriptfiles)
PHP код:
SaveBanishments(playerid)
{
new file[64];
format(file, sizeof(file), "Banishments/%s.ini", GetName(playerid));
INI_IntSet(file,"bReason",PlayerInfo[playerid][bReason]);
return 1;
}
PHP код:
SaveBanishments(playerid);
PHP код:
new PlayerFile[50];
format(PlayerFile,sizeof(PlayerFile),"Banishments/%s.ini",params);
format(string,sizeof(string),"Name: %s \nID:%d was auto kicked. \nReason: %s \n",PlayerName,playerid,INI_Get(PlayerFile,"bReason"));