ahh jezt funkt es vielen dank euch beiden (=
Edit: neues problem bei admin system so funkt ja alles nur es ist jeder admin der sich auf denn server registriert /=
hier die schnipsel
padmlvl,
new admlevel[MAX_PLAYERS];
if(strcmp("/acmds",cmdtext, true, 10) == 0)
{
if(admlevel[playerid]>=3) {
SendClientMessage(playerid,rot,"Du bist kein Admin!");
} else {
SendClientMessage(playerid, ROT, "----| Amdin CMD´s |----");
SendClientMessage(playerid, hellblau, " /sethp [ID] [zahl]");
SendClientMessage(playerid, hellblau, " /givegun [ID] [id] [ammo]");
SendClientMessage(playerid, hellblau, " /setskin [ID] [skinID]");
SendClientMessage(playerid, hellblau, " /freeze [ID] and /unfreeze [ID]");
SendClientMessage(playerid, hellblau, " /kick [ID} and /ban [ID]");
SendClientMessage(playerid, hellblau, " /goto [ID] and /gethere [ID]");
SendClientMessage(playerid, hellblau, " /veh [id] [farbe1] [farbe2]");
format(var, 32, "%s\n", PlayerInfo[playerid][pPassword]);fwrite(hFile, var);
format(var, 32, "Wantedlevel=%d\n",PlayerInfo[playerid][pWantedlevel]);fwrite(hFile, var);
format(var, 32, "Kills=%d\n",PlayerInfo[playerid][pKills]);fwrite(hFile, var);
format(var, 32, "Deaths=%d\n",PlayerInfo[playerid][pDeaths]);fwrite(hFile, var);
PlayerInfo[playerid][pCash] = GetPlayerMoney(playerid);
format(var, 32, "Money=%d\n",PlayerInfo[playerid][pCash]);fwrite(hFile, var);
format(var, 32, "admlvl=%d\n", PlayerInfo[playerid][padmlvl]);fwrite(hFile, var);
if( strcmp( key , "Wantedlevel" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWantedlevel] = strval( val ); }
if( strcmp( key , "Kills" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pKills] = strval( val ); }
if( strcmp( key , "Deaths" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDeaths] = strval( val ); }
if( strcmp( key , "Money" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCash] = strval( val ); }
GivePlayerMoney(playerid,PlayerInfo[playerid][pCash]);
if( strcmp( key , "admlvl" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][padmlvl] = strval( val ); }
format(var, 32, "Kills=%d\n",PlayerInfo[playerid][pKills]);fwrite(hFile, var);
format(var, 32, "Wantedlevel=%d\n",PlayerInfo[playerid][pWantedlevel]);fwrite(hFile, var);
format(var, 32, "Deaths=%d\n",PlayerInfo[playerid][pDeaths]);fwrite(hFile, var);
format(var, 32, "Money=%d\n",PlayerInfo[playerid][pCash]);fwrite(hFile, var);
format(var, 32, "admlvl=%d\n", PlayerInfo[playerid][padmlvl]);fwrite(hFile, var);
fclose(hFile);