Bei meinen Pickups:
if (pickupid ==LSPDD)
{
if(LSPD[playerid] == 0 && GetPlayerScore(playerid) == 10 || LSPD[playerid] == 0 && GetPlayerScore(playerid) == 110 || LSPD[playerid] == 0 && GetPlayerScore(playerid) == 1110)
{
SetPlayerSkin(playerid,280);
SetPlayerColor(playerid,KFZ);
new sendername[MAX_PLAYER_NAME], string[128];
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "%s hat den Dient beim LSPD begonnen!", sendername);
SendClientMessageToAll(COLOR_WHITE, string);
LSPD[playerid] = 1;
}
else if(LSPD[playerid] == 1)
{
SetPlayerColor(playerid,Zivi);
new sendername[MAX_PLAYER_NAME], string[128];
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "%s hat den Dient beim LSPD beendet!", sendername);
SendClientMessageToAll(COLOR_WHITE, string);
SetPlayerSkin(playerid,skin);
LSPD[playerid] = 0;
}
else SendClientMessage(playerid,ROT,"Du arbeitest nicht beim LSPD!");
}
Da wird die Variable aber auf 1 gesetzt ...