Kann mir einer einen Gangjail befehl geben mit ocmd??
wäre echt nice
Kann mir einer einen Gangjail befehl geben mit ocmd??
wäre echt nice
WIe kann man das Speicher (mysql)
genau so wie du andere sachen speicherst
meine Glaskugel ist kaputt siehe:
Das bedeutet was?
Genau Code´s posten
Ic hwill speicher wenn man im Gamgjail ist und sich ausloggt das man dann wieder im Gangjail ist
wie hast du es bisher alles gemacht?
abfragen blablabla
Ich schreib nicht umsonst poste codes
wie speicherst du andere dinge ?
Ich kann nicht hellsehen
Zitatwie hast du es bisher alles gemacht?
abfragen blablabla
Ich schreib nicht umsonst poste codes
wie speicherst du andere dinge ?
Ich kann nicht hellsehen
stock LoadPlayer(playerid)
{
if(IsPlayerConnected(playerid) && !IsPlayerNPC(playerid))
{
GetPlayerName(playerid, PlayerInfo[playerid][pName], MAX_PLAYER_NAME);
SetPlayerWantedLevel(playerid,mysql_GetInt("accounts", "WantedLevel", "Name",PlayerInfo[playerid][pName]));
GivePlayerMoney(playerid,mysql_GetInt("accounts", "Geld", "Name", PlayerInfo[playerid][pName]));
PlayerInfo[playerid][pLevel] = mysql_GetInt("accounts", "Level", "Name", PlayerInfo[playerid][pName]);
PlayerInfo[playerid][pAlter] = mysql_GetInt("accounts","Alter","Name", PlayerInfo[playerid][pName]);
PlayerInfo[playerid][pNutzung] = mysql_GetInt("account","Nutzung","Name", PlayerInfo[playerid][pName]);
PlayerInfo[playerid][pSkin] = mysql_GetInt("accounts", "Skin", "Name", PlayerInfo[playerid][pName]);
PlayerInfo[playerid][pKills] = mysql_GetInt("accounts", "Kills", "Name", PlayerInfo[playerid][pName]);
PlayerInfo[playerid][pTode] = mysql_GetInt("accounts", "Tode", "Name", PlayerInfo[playerid][pName]);
PlayerInfo[playerid][pJob] = mysql_GetInt("accounts", "Job", "Name", PlayerInfo[playerid][pName]);
PlayerInfo[playerid][pFraktionsLeader] = mysql_GetInt("accounts", "FraktionsLeader", "Name", PlayerInfo[playerid][pName]);
PlayerInfo[playerid][pFraktionsMember] = mysql_GetInt("accounts", "FraktionsMember", "Name", PlayerInfo[playerid][pName]);
PlayerInfo[playerid][pFraktionsRange] = mysql_GetInt("accounts", "FraktionsRange", "Name", PlayerInfo[playerid][pName]);
PlayerInfo[playerid][pAdminLevel] = mysql_GetInt("accounts", "AdminLevel", "Name", PlayerInfo[playerid][pName]);
PlayerInfo[playerid][pAutoschein] = mysql_GetInt("accounts","Autoschein","Name",PlayerInfo[playerid][pName]);
PlayerInfo[playerid][pMotorradschein] = mysql_GetInt("accounts","Motorradschein","Name",PlayerInfo[playerid][pName]);
PlayerInfo[playerid][pLKWschein] = mysql_GetInt("accounts","LKWschein","Name",PlayerInfo[playerid][pName]);
PlayerInfo[playerid][pBootschein] = mysql_GetInt("accounts","Bootschein","Name",PlayerInfo[playerid][pName]);
PlayerInfo[playerid][pWaffenschein] = mysql_GetInt("accounts","Waffenschein","Name",PlayerInfo[playerid][pName]);
PlayerInfo[playerid][pAngelschein] = mysql_GetInt("accounts","Angelschein","Name",PlayerInfo[playerid][pName]);
PlayerInfo[playerid][pBanned] = mysql_GetInt("accounts","Bann","Name",PlayerInfo[playerid][pName]);
PlayerInfo[playerid][pBanned] = mysql_GetInt("accounts","Bann","Name",PlayerInfo[playerid][pName]);
if(PlayerInfo[playerid][pBanned] == 1)
{
SendClientMessage(playerid,Rot,"Du bist vom Server gebannt.");
Kick(playerid);
}
if(PlayerInfo[playerid][pTimeBanned] >= 1)
{
new STR[128];
new wert;
format(STR,sizeof(STR),"[Name:[%s]] [Timeban noch:[%i]]",PlayerName(playerid),wert);
ShowPlayerDialog(playerid,DIALOG_TIMEBAN,DIALOG_STYLE_MSGBOX,"TimeBan",STR," "," ");
Kick(playerid);
}
}
return 1;
}
stock SavePlayer(playerid)
{
if(IsPlayerConnected(playerid) && !IsPlayerNPC(playerid))
{
if(GetPVarInt(playerid,"Eingeloggt") == 1)
{
GetPlayerName(playerid, PlayerInfo[playerid][pName], MAX_PLAYER_NAME);
mysql_SetInt("accounts", "Geld", GetPlayerMoney(playerid), "Name", PlayerInfo[playerid][pName]);
mysql_SetInt("accounts", "Skin", GetPlayerSkin(playerid), "Name", PlayerInfo[playerid][pName]);
mysql_SetInt("accounts", "WantedLevel",GetPlayerWantedLevel(playerid),"Name",PlayerInfo[playerid][pName]);
mysql_SetInt("accounts", "Alter", PlayerInfo[playerid][pAlter],"Name",PlayerInfo[playerid][pName]);
mysql_SetInt("accounts", "Nutzung",PlayerInfo[playerid][pNutzung],"Name",PlayerInfo[playerid][pName]);
mysql_SetInt("accounts", "Level", PlayerInfo[playerid][pLevel], "Name", PlayerInfo[playerid][pName]);
mysql_SetInt("accounts", "Kills", PlayerInfo[playerid][pKills], "Name", PlayerInfo[playerid][pName]);
mysql_SetInt("accounts", "Tode", PlayerInfo[playerid][pTode], "Name", PlayerInfo[playerid][pName]);
mysql_SetInt("accounts", "",PlayerInfo[playerid][pJob],"Name",PlayerInfo[playerid][pName]);
mysql_SetInt("accounts", "FraktionsLeader", PlayerInfo[playerid][pFraktionsLeader], "Name", PlayerInfo[playerid][pName]);
mysql_SetInt("accounts", "FraktionsMember", PlayerInfo[playerid][pFraktionsMember], "Name", PlayerInfo[playerid][pName]);
mysql_SetInt("accounts", "FraktionsRange", PlayerInfo[playerid][pFraktionsRange], "Name", PlayerInfo[playerid][pName]);
mysql_SetInt("accounts", "AdminLevel", PlayerInfo[playerid][pAdminLevel], "Name", PlayerInfo[playerid][pName]);
mysql_SetFloat("accounts", "Health", PlayerInfo[playerid][pHealth], "Name", PlayerInfo[playerid][pName]);
mysql_SetInt("accounts", "Autoschein", PlayerInfo[playerid][pAutoschein], "Name", PlayerInfo[playerid][pName]);
mysql_SetInt("accounts", "Motorradschein", PlayerInfo[playerid][pMotorradschein], "Name", PlayerInfo[playerid][pName]);
mysql_SetInt("accounts", "LKWschein", PlayerInfo[playerid][pLKWschein], "Name", PlayerInfo[playerid][pName]);
mysql_SetInt("accounts", "Bootschein", PlayerInfo[playerid][pBootschein], "Name", PlayerInfo[playerid][pName]);
mysql_SetInt("accounts", "pWaffenschein", PlayerInfo[playerid][pWaffenschein], "Name", PlayerInfo[playerid][pName]);
mysql_SetInt("accounts", "pAngelschein", PlayerInfo[playerid][pAngelschein], "Name", PlayerInfo[playerid][pName]);
mysql_SetInt("accounts", "Bann",PlayerInfo[playerid][pBanned],"Name",PlayerInfo[playerid][pName]);
mysql_SetInt("accounts", "TimeBan",PlayerInfo[playerid][pTimeBanned],"Name",PlayerInfo[playerid][pName]);
}
}
return 1;
}
hir bistte schön