stock SpielerLaden(playerid)
{
if(IsPlayerConnected(playerid) && !IsPlayerNPC(playerid))
{
PlayerInfo[playerid][pLevel] = mysql_GetInt("accounts", "Level", "Name", SpielerName(playerid));
PlayerInfo[playerid][pAdmin] = mysql_GetInt("accounts", "Admin", "Name", SpielerName(playerid));
PlayerInfo[playerid][pGeld] = mysql_GetInt("accounts", "Geld", "Name", SpielerName(playerid));
PlayerInfo[playerid][pFrak] = mysql_GetInt("accounts", "Frak", "Name", SpielerName(playerid));
PlayerInfo[playerid][pMember] = mysql_GetInt("accounts", "Member", "Name", SpielerName(playerid));
PlayerInfo[playerid][pLeader] = mysql_GetInt("accounts", "Leader", "Name", SpielerName(playerid));
PlayerInfo[playerid][pPerso] = mysql_GetInt("accounts", "Perso", "Name", SpielerName(playerid));
PlayerInfo[playerid][pClic] = mysql_GetInt("accounts", "Clic", "Name", SpielerName(playerid));
PlayerInfo[playerid][pFlic] = mysql_GetInt("accounts", "Flic", "Name", SpielerName(playerid));
PlayerInfo[playerid][pMlic] = mysql_GetInt("accounts", "Mlic", "Name", SpielerName(playerid));
PlayerInfo[playerid][pWlic] = mysql_GetInt("accounts", "Wlic", "Name", SpielerName(playerid));
PlayerInfo[playerid][pX] = mysql_GetFloat("accounts", "PosX", "Name", SpielerName(playerid));
PlayerInfo[playerid][pY] = mysql_GetFloat("accounts", "PosY", "Name", SpielerName(playerid));
PlayerInfo[playerid][pZ] = mysql_GetFloat("accounts", "PosZ", "Name", SpielerName(playerid));
PlayerInfo[playerid][pA] = mysql_GetFloat("accounts", "PosA", "Name", SpielerName(playerid));
SetPlayerScore(playerid,PlayerInfo[playerid][pLevel]);
GivePlayerMoney(playerid,PlayerInfo[playerid][pGeld]);
}
return 1;
}
public OnPlayerSpawn(playerid)
{
SetPlayerPos(playerid,PlayerInfo[playerid][pX],PlayerInfo[playerid][pY],PlayerInfo[playerid][pZ]);
return 1;
}