Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnPlayerSpawn(playerid)
- {
- new Accounts[256];
- new Name[MAX_PLAYER_NAME];
- GetPlayerName(playerid, Name, sizeof(Name));
- format(Accounts, sizeof(Accounts), "/Accounts/%s.txt", Name);
- SetPlayerScore(playerid,PlayerInfo[playerid][XP]);
- SetPlayerSkin(playerid, PlayerInfo[playerid][Skinas]);
- GivePlayerMoney(playerid, PlayerInfo[playerid][Pinigai]);
- SetPlayerHealth(playerid, PlayerInfo[playerid][Health]);
- SetPlayerArmour(playerid, PlayerInfo[playerid][Armour]);
- SetPlayerPos(playerid, PlayerInfo[playerid][pX], PlayerInfo[playerid][pY], PlayerInfo[playerid][pZ]);
- GivePlayerWeapon(playerid, PlayerInfo[playerid][Ginklai]);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement