new aID; //Gefangner
ocmd:arrest(playerid,params[])
{
if(IsPlayerConnected(playerid))
{
if(IsACop(playerid))
{
if(OnDuty[playerid]==1)
{
if(IsPlayerInRangeOfPoint(playerid,5.0,1564.5737,-1694.0496,5.8906) || IsPlayerInRangeOfPoint(aID,5.0,1564.5737,-1694.0496,5.8906))
{
if(PlayerCuffed[aID]==2)
{
if(sscanf(params,"u",aID))return SendClientMessage(playerid,F_Gray,"Befehl: /arrest [SpielerID/Name]");
{
new wlevel = WantedLevel[aID];
PlayerInfo[aID][pJailed] = 1;
PlayerInfo[aID][pJailTime] = (wlevel*120);
PlayerInfo[aID][pArrested] ++;
PlayerCuffed[aID]=0;
ResetPlayerWeapons(aID);
SetPlayerInterior(aID, 6);
WantedPoints[aID] = 0;
SetPlayerWantedLevel(aID,0);
WantedLevel[aID] = 0;
GivePlayerMoney(playerid, wlevel*200);
if(LSPDZellen == 0)//zelle1
{
SetPlayerPos(aID,263.9675,86.6190,1001.0391);
LSPDZellen += 1;
}
if(LSPDZellen == 1)//zelle2
{
SetPlayerPos(aID,264.2247,82.2584,1001.0391);
LSPDZellen += 1;
}
if(LSPDZellen == 2)//zelle3
{
SetPlayerPos(aID,264.2914,77.6033,1001.0391);
LSPDZellen = 0;
}
}
}
else
{
SendClientMessage(playerid,F_Gray,"Der Spieler muss gefässelt sein!");
}
}
}
else
{
SendClientMessage(playerid,F_Gray,"Du bist nicht im Dienst!");
}
}
else
{
SendClientMessage(playerid,F_Gray,"Du bist kein Cop!");
}
}
return 1;
}
Es wird immer gesagt "Der Spieler muss gefässelt sein" doch das ist er... Ich finde den Fehler nit :p