07.01.2014, 14:00
olha:
minhas includes:
#include <a_samp>
#include <Dini>
public OnPlayerSpawn(playerid)
{
if(dini_Isset("weapon.ini",PlayerName(playerid))) GivePlayerWeapon(playerid,dini_Int("weapon.ini",Pl ayerName(playerid)));
return 1;
}
public OnGameModeInit()
{
if(!fexist("weapon.ini")) dini_Create("weapon.ini");
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
dini_IntSet("weapon.ini",PlayerName(playerid),GetP layerWeapon(playerid));
return 1;
}
minhas includes:
#include <a_samp>
#include <Dini>
public OnPlayerSpawn(playerid)
{
if(dini_Isset("weapon.ini",PlayerName(playerid))) GivePlayerWeapon(playerid,dini_Int("weapon.ini",Pl ayerName(playerid)));
return 1;
}
public OnGameModeInit()
{
if(!fexist("weapon.ini")) dini_Create("weapon.ini");
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
dini_IntSet("weapon.ini",PlayerName(playerid),GetP layerWeapon(playerid));
return 1;
}