Hallo eine frage bei den command hier if(IsPlayerInRangeOfPoint(playerid,10.0,1565.8591,-1694.4272,5.8906) || IsPlayerInRangeOfPoint(playerid,15.0,200.6968,168.3494,1003.0234)) Kann ich da auch so weiter mehr punkte einfügen?
dcmd_arrest(playerid,params[])
{
new pID, zelle;
if(sscanf(params,"ud",pID,zelle))return SendClientMessage(playerid,0xFF0019FF,"Befehl: /arrest [playerid] [Zelle 0-6]");
if(IsACop(playerid))
{
if(SInfo[pID][pWantedpunkte] > 0)
{
if(SInfo[pID][pKnast] == 0)
{
if(IsPlayerInRangeOfPoint(playerid,10.0,1565.8591,-1694.4272,5.8906) || IsPlayerInRangeOfPoint(playerid,15.0,200.6968,168.3494,1003.0234))
{
if (ProxDetectorS(8.0, playerid, pID))
{
GetPlayerName(playerid,pname,sizeof(pname));
format(str,sizeof(str),"Du hast den Spieler %s für %d Minuten eingesperrt!",pname,2*SInfo[pID][pWantedpunkte]);
SendClientMessage(playerid,Blau,str);
new sname[MAX_PLAYER_NAME];
GetPlayerName(pID,sname,sizeof(sname));
format(str,sizeof(str),"<< Officer %s hat %s für %d Minuten eingesperrt! >>",pname,sname,2*SInfo[pID][pWantedpunkte]);
SendClientMessageToAll(Blau,str);
SInfo[pID][pKnastzeit] = 2*SInfo[pID][pWantedpunkte];
SInfo[pID][pKnast] = 1;
SInfo[pID][pGefesselt] = 0;
TogglePlayerControllable(pID,1);
GivePlayerMoney(pID,-350*SInfo[pID][pWantedpunkte]);
GivePlayerMoney(playerid,350*SInfo[pID][pWantedpunkte]);
switch(zelle)
{
case 0: SetPlayerPos(pID,1459.2109,-1013.4951,26.8438); // knast Zelle
case 1: SetPlayerPos(pID,189.8705,162.4187,1003.0338); // knast Zelle
case 2: SetPlayerPos(pID,194.6222,162.4357,1003.0338); // knast Zelle
case 3: SetPlayerPos(pID,198.4555,162.5598,1003.0338); // knast Zelle
case 4: SetPlayerPos(pID,197.4902,174.5474,1003.0338); // knast Zelle
case 5: SetPlayerPos(pID,193.3299,174.5086,1003.0338); // knast Zelle
case 6: SetPlayerPos(pID,189.0740,174.2579,1003.0338); // knast Zelle
}
SetPlayerSpecialAction(pID,SPECIAL_ACTION_NONE);
SpawnPlayer(pID);
SetPlayerInterior(pID,3);
ResetPlayerWeapons(pID);
SInfo[pID][pWantedpunkte] = 0;
SetPlayerWantedLevel(playerid,0);
SetPlayerWantedLevel(pID,SInfo[pID][pWantedpunkte]);
SetPlayerColor(pID, 0xAAAAAA00);
}
else
{
SendClientMessage(playerid,COLOR_RED,"Der Spieler ist zuweit weg von dir!");
}
}
else
{
SendClientMessage(playerid,COLOR_RED,"Hier kannst du keinen einsperren!");
}
}
else
{
SendClientMessage(playerid,COLOR_RED,"Der Spieler ist schon im Gefängnis!");
}
}
else
{
SendClientMessage(playerid,COLOR_RED,"Dieser Spieler hat keine Wanteds!");
}
}
else
{
SendClientMessage(playerid,COLOR_RED,"Das darfst du nicht!");
}
return 1;
}