[Ajuda] Salvamento de Weapons. DINI
#5

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;
}
Reply


Messages In This Thread
Salvamento de Weapons. DINI - by [Dark]Danny_Uchiha - 07.01.2014, 13:48
Re: Salvamento de Weapons. DINI - by Cidiei - 07.01.2014, 13:52
Re: Salvamento de Weapons. DINI - by [Dark]Danny_Uchiha - 07.01.2014, 13:55
Re: Salvamento de Weapons. DINI - by Cidiei - 07.01.2014, 13:57
Re: Salvamento de Weapons. DINI - by [Dark]Danny_Uchiha - 07.01.2014, 14:00

Forum Jump:


Users browsing this thread: 1 Guest(s)