Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #include <dini>
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print("Dinheiro e Score");
- print("--------------------------------------\n");
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- new name[MAX_PLAYER_NAME], texto[128];
- GetPlayerName(playerid,name,MAX_PLAYER_NAME);
- format(texto,sizeof(texto),"%s.ini",name);
- dini_Create(texto);
- dini_Int(texto,"dinheiro");
- dini_Int(texto,"level");
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- new name[MAX_PLAYER_NAME], texto[128];
- GetPlayerName(playerid,name,MAX_PLAYER_NAME);
- format(texto,sizeof(texto),"%s.ini",name);
- dini_IntSet(texto,"dinheiro",GetPlayerMoney(playerid));
- dini_IntSet(texto,"level",GetPlayerScore(playerid));
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement