Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. public OnPlayerSpawn(playerid)
  2. {
  3. new Accounts[256];
  4. new Name[MAX_PLAYER_NAME];
  5. GetPlayerName(playerid, Name, sizeof(Name));
  6. format(Accounts, sizeof(Accounts), "/Accounts/%s.txt", Name);
  7. SetPlayerScore(playerid,PlayerInfo[playerid][XP]);
  8. SetPlayerSkin(playerid, PlayerInfo[playerid][Skinas]);
  9. GivePlayerMoney(playerid, PlayerInfo[playerid][Pinigai]);
  10. SetPlayerHealth(playerid, PlayerInfo[playerid][Health]);
  11. SetPlayerArmour(playerid, PlayerInfo[playerid][Armour]);
  12. SetPlayerPos(playerid, PlayerInfo[playerid][pX], PlayerInfo[playerid][pY], PlayerInfo[playerid][pZ]);
  13. GivePlayerWeapon(playerid, PlayerInfo[playerid][Ginklai]);
  14. return 1;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement