01.07.2011, 21:08
PHP код:
#include <dini>
public OnGameModeInit()
{
if(!fexist("Procurados.txt")) { dini_Create("Procurados.txt"); }
return 1;
}
public OnPlayerConnect(playerid)
{
new n[24], str[24];
GetPlayerName(playerid, n, 24);
format(str, 24, "%s", n);
if(dini_Isset("Procurados.txt", str)) { SetPlayerWantedLevel(playerid, dini_Int("Procurados.txt", str)); }
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
new n[24], str[24];
GetPlayerName(playerid, n, 24);
format(str, 24, "%s", n);
dini_IntSet("Procurados.txt", str, GetPlayerWantedLevel(playerid));
return 1;
}