if(strcmp(cmd, "/arrest", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(gTeam[playerid] == 2 || IsACop(playerid) || PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
{
if(OnDuty[playerid] != 1 && PlayerInfo[playerid][pMember] == 1)
{
SendClientMessage(playerid, COLOR_GREY, " Du bist nicht im Dienst!");
return 1;
}
if(IsPlayerInRangeOfPoint(playerid,6.0,-1589.8398,715.9842,-5.2422) || IsPlayerInRangeOfPoint(playerid,3.0,215.6246,113.8847,999.0156) || IsPlayerInRangeOfPoint(playerid,3.0,1564.6660,-1694.4382,5.8906))
{
// Jail spot
new suspect = GetClosestPlayer(playerid);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Benutze: /arrest (ID / Name)");
return 1;
}
if(IsACop(suspect))
{
SendClientMessage(playerid, COLOR_GRAD2, " Du kannst keinen Beamten einsperren!");
return 1;
}
if(IsPlayerConnected(suspect))
{
if(GetDistanceBetweenPlayers(playerid,suspect) < 5)
{
GetPlayerName(suspect, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
if(WantedLevel[suspect] < 1)
{
SendClientMessage(playerid, COLOR_GREY, " Der Spieler ist nicht gesucht!");
return 1;
}
GivePlayerMoney(suspect,-WantedLevel[suspect]*750);
GivePlayerMoney(playerid,WantedLevel[suspect]*750);
PlayerInfo[playerid][pGehalt] += WantedLevel[suspect]*2000;
ResetPlayerWeapons(suspect);
if(PlayerInfo[playerid][pMember]==1||PlayerInfo[playerid][pLeader]==1)
{
format(string, sizeof(string), "INFO: Officer %s hat den Verbrecher %s eingesperrt", SpielerName(playerid), SpielerName(suspect));
OOCNews(COLOR_RED, string);
}
else if(PlayerInfo[playerid][pMember]==2||PlayerInfo[playerid][pLeader]==2)
{
format(string, sizeof(string), "INFO: Agent %s hat den Verbrecher %s eingesperrt", SpielerName(playerid), SpielerName(suspect));
OOCNews(COLOR_RED, string);
}
else if(PlayerInfo[playerid][pMember]==3||PlayerInfo[playerid][pLeader]==3)
{
format(string, sizeof(string), "INFO: Soldat %s hat den Verbrecher %s eingesperrt", SpielerName(playerid), SpielerName(suspect));
OOCNews(COLOR_RED, string);
}
else if(PlayerInfo[playerid][pMember]==22||PlayerInfo[playerid][pLeader]==22)
{
format(string, sizeof(string), "INFO: SWAT Agent %s hat den Verbrecher %s eingesperrt", SpielerName(playerid), SpielerName(suspect));
OOCNews(COLOR_RED, string);
}
if(PlayerInfo[playerid][pMember] == 2)
{
if(LSPDZellen == 0)//zelle1
{
SetPlayerInterior(playerid, 0);
UnFreezePlayer(playerid);
PlayerCuffed[playerid] = 0;
SetPlayerPos(playerid,227.3844,111.5490,999);
LSPDZellen += 1;
}
if(LSPDZellen == 1)//zelle2
{
SetPlayerInterior(playerid, 0);
UnFreezePlayer(playerid);
PlayerCuffed[playerid] = 0;
SetPlayerPos(playerid,223.5090,111.4179,999);
LSPDZellen += 1;
}
if(LSPDZellen == 2)//zelle3
{
SetPlayerInterior(playerid, 0);
UnFreezePlayer(playerid);
PlayerCuffed[playerid] = 0;
SetPlayerPos(playerid,219.5361,111.3571,999);
LSPDZellen += 1;
}
if(LSPDZellen == 3)//Zelle4
{
SetPlayerInterior(playerid, 0);
UnFreezePlayer(playerid);
PlayerCuffed[playerid] = 0;
SetPlayerPos(playerid,215.5814,111.1412,999);
LSPDZellen += 1;
}
else
{
if(LSPDZellen == 0)//zelle1
{
SetPlayerInterior(playerid, 0);
UnFreezePlayer(playerid);
PlayerCuffed[playerid] = 0;
SetPlayerPos(playerid,264.8299,86.5835,1001.0391);
LSPDZellen += 1;
}
if(LSPDZellen == 1)//zelle2
{
SetPlayerInterior(playerid, 0);
UnFreezePlayer(playerid);
PlayerCuffed[playerid] = 0;
SetPlayerPos(playerid,264.4675,82.0742,1001.0391);
LSPDZellen += 1;
}
if(LSPDZellen == 2)//zelle3
{
SetPlayerInterior(playerid, 0);
UnFreezePlayer(playerid);
PlayerCuffed[playerid] = 0;
SetPlayerPos(playerid,265.2794,77.6027,1001.0391);
LSPDZellen += 1;
}
}
PlayerInfo[suspect][pJailTime] = WantedLevel[suspect] * 240;
new spr[100];
format(spr,sizeof(spr),"Du wurdest für %d Minuten und einer Geldstrafe von %d$ eingesperrt",WantedLevel[suspect] * 4,WantedLevel[suspect] * 2000);
SendClientMessage(playerid,COLOR_LIGHTBLUE,spr);
PlayerInfo[suspect][pJailed] = 1;
PlayerInfo[suspect][pArrested] += 1;
SetPlayerInterior(suspect, 6);
SetPlayerFree(suspect,playerid, "Verhaftet");
WantedPoints[suspect] = 0;
WantedLevel[suspect] = 0;
SetPlayerWantedLevel(suspect,0);
}
//distance
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Niemand zum Verhaften in deiner Nähe.");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Du bist kein Beamter !");
return 1;
}
}
//not connected
return 1;
}
C:\Windows\Vss\First Person\German Reallife\German Reallife\gamemodes\Nol.pwn(2562) : error 017: undefined symbol "UnFreezePlayer"
C:\Windows\Vss\First Person\German Reallife\German Reallife\gamemodes\Nol.pwn(2791) : error 017: undefined symbol "FRAC_OnPlayerEnterVehicle"
C:\Windows\Vss\First Person\German Reallife\German Reallife\gamemodes\Nol.pwn(2827) : error 017: undefined symbol "IsPlayerInFrac"
C:\Windows\Vss\First Person\German Reallife\German Reallife\gamemodes\Nol.pwn(2837) : error 017: undefined symbol "IsPlayerInFrac"
C:\Windows\Vss\First Person\German Reallife\German Reallife\gamemodes\Nol.pwn(2848) : error 017: undefined symbol "FreezePlayer"
C:\Windows\Vss\First Person\German Reallife\German Reallife\gamemodes\Nol.pwn(2849) : error 017: undefined symbol "UnFreezePlayer"
C:\Windows\Vss\First Person\German Reallife\German Reallife\gamemodes\Nol.pwn(2853) : error 017: undefined symbol "IsPlayerInFrac"
C:\Windows\Vss\First Person\German Reallife\German Reallife\gamemodes\Nol.pwn(2872) : error 017: undefined symbol "IsPlayerInFrac"
C:\Windows\Vss\First Person\German Reallife\German Reallife\gamemodes\Nol.pwn(2882) : error 017: undefined symbol "IsPlayerInFrac"
C:\Windows\Vss\First Person\German Reallife\German Reallife\gamemodes\Nol.pwn(2892) : error 017: undefined symbol "IsPlayerInFrac"
C:\Windows\Vss\First Person\German Reallife\German Reallife\gamemodes\Nol.pwn(3426) : error 017: undefined symbol "SpielerName"
C:\Windows\Vss\First Person\German Reallife\German Reallife\gamemodes\Nol.pwn(4147) : error 017: undefined symbol "SpielerName"
C:\Windows\Vss\First Person\German Reallife\German Reallife\gamemodes\Nol.pwn(4395) : error 017: undefined symbol "IsPlayerInFrac"
C:\Windows\Vss\First Person\German Reallife\German Reallife\gamemodes\Nol.pwn(4408) : error 017: undefined symbol "RemoveRoadblock"
C:\Windows\Vss\First Person\German Reallife\German Reallife\gamemodes\Nol.pwn(4458) : error 017: undefined symbol "FreezePlayer"
C:\Windows\Vss\First Person\German Reallife\German Reallife\gamemodes\Nol.pwn(4479) : error 017: undefined symbol "FreezePlayer"
C:\Windows\Vss\First Person\German Reallife\German Reallife\gamemodes\Nol.pwn(4510) : error 017: undefined symbol "SetPlayerToKnast"
C:\Windows\Vss\First Person\German Reallife\German Reallife\gamemodes\Nol.pwn(4738) : error 017: undefined symbol "IsPlayerInFrac"
C:\Windows\Vss\First Person\German Reallife\German Reallife\gamemodes\Nol.pwn(5007) : error 017: undefined symbol "IsPlayerInFrac"
C:\Windows\Vss\First Person\German Reallife\German Reallife\gamemodes\Nol.pwn(5015) : error 017: undefined symbol "SpielerName"
C:\Windows\Vss\First Person\German Reallife\German Reallife\gamemodes\Nol.pwn(5035) : error 017: undefined symbol "SpielerName"
C:\Windows\Vss\First Person\German Reallife\German Reallife\gamemodes\Nol.pwn(5040) : error 017: undefined symbol "SpielerName"
C:\Windows\Vss\First Person\German Reallife\German Reallife\gamemodes\Nol.pwn(5045) : error 017: undefined symbol "SpielerName"
C:\Windows\Vss\First Person\German Reallife\German Reallife\gamemodes\Nol.pwn(5050) : error 017: undefined symbol "SpielerName"
C:\Windows\Vss\First Person\German Reallife\German Reallife\gamemodes\Nol.pwn(5056) : error 017: undefined symbol "UnFreezePlayer"
C:\Windows\Vss\First Person\German Reallife\German Reallife\gamemodes\Nol.pwn(5064) : error 017: undefined symbol "UnFreezePlayer"
26 Erros