Advertisement
Guest User

ops

a guest
Feb 18th, 2011
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.78 KB | None | 0 0
  1. #include <a_samp>
  2. #include <dini>
  3.  
  4. public OnFilterScriptInit()
  5. {
  6.     print("\n--------------------------------------");
  7.     print("Dinheiro e Score");
  8.     print("--------------------------------------\n");
  9.     return 1;
  10. }
  11. public OnPlayerConnect(playerid)
  12. {
  13.     new name[MAX_PLAYER_NAME], texto[128];
  14.     GetPlayerName(playerid,name,MAX_PLAYER_NAME);
  15.     format(texto,sizeof(texto),"%s.ini",name);
  16.     dini_Create(texto);
  17.     dini_Int(texto,"dinheiro");
  18.     dini_Int(texto,"level");
  19.     return 1;
  20. }
  21.  
  22. public OnPlayerDisconnect(playerid, reason)
  23. {
  24.     new name[MAX_PLAYER_NAME], texto[128];
  25.     GetPlayerName(playerid,name,MAX_PLAYER_NAME);
  26.     format(texto,sizeof(texto),"%s.ini",name);
  27.     dini_IntSet(texto,"dinheiro",GetPlayerMoney(playerid));
  28.     dini_IntSet(texto,"level",GetPlayerScore(playerid));
  29.     return 1;
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement