#include <a_samp>
#include <dof2>
#if defined FILTERSCRIPT
#define VIP "VIP/%s.ini
new Vip [MAX_PLAYERS];
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Blank Filterscript by your name here");
print("--------------------------------------\n");
//
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#else
main()
{
print("\n----------------------------------");
print(" Blank Gamemode by your name here");
print("----------------------------------\n");
}
public OnPlayerConnect(playerid)
{
if(!DOF2_FileExists("VIP/%s.ini"))
{
DOF2_CreateFile("VIP/%s.ini");
}
return 1;
}
#include <a_samp>
#include <dof2>
#if defined FILTERSCRIPT
#define VIP "VIP/%s.ini
new Vip [MAX_PLAYERS];
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Blank Filterscript by your name here");
print("--------------------------------------\n");
//
return 1;
}
public OnFilterScriptExit()
{
DOF2_Exit("VIP/%s.ini");
return 1;
}
#else
main()
{
print("\n----------------------------------");
print(" Blank Gamemode by your name here");
print("----------------------------------\n");
}
public OnPlayerConnect(playerid)
{
if(!DOF2_FileExists("VIP/%s.ini"))
{
DOF2_CreateFile("VIP/%s.ini");
}
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
new Nome[MAX_PLAYER_NAME];
new VIP[64];
new Float:Level;
GetPlayerScore(playerid, Level);
DOF2_SetFloat("VIP/%s.ini");
new String[50];
format(String, sizeof(String), VIP, Nome);
DOF2_SetFloat(String,"Level", Level);
DOF2_SaveFile("VIP/%s.ini");
return 1;
}
public OnPlayerSpawn(playerid)
{
new VIP[64];
new Nome[MAX_PLAYER_NAME];
GetPlayerName(playerid, Nome, sizeof(Nome));
new String[50];
format(String, sizeof(String), VIP, Nome);
SetPlayerScore(playerid, DOF2_GetFloat(String,"Level"));
return 1;
}
#endif
|
DOF2_FileExists("VIP/%s.ini"); DOF2_CreateFile("VIP/%s.ini"); DOF2_SetFloat("VIP/%s.ini"); DOF2_SaveFile("VIP/%s.ini"); |