wenn ich denn Befehl eingebe passiert rein garnix bitte im hilfe hir der code:
ocmd:jaills(playerid, params[])
{
new jailzahl[60],pID;
new knasttime = GetPlayerWantedLevel(pID)*60000;
if(sscanf(params, "dd", pID,jailzahl))return SCM(playerid, Gelb,"[Benutze]: /jaills [PlayerID/PlayerName][KanstZahl( 1 - 3 )]");
//if(pID == playerid)return SCM(playerid,Rot,"Du kannst dich net selber einsperen!");
if(PlayerInfo[playerid][pFraktionsLeader] == 1 || PlayerInfo[playerid][pFraktionsMember] == 1) {
if(IsPlayerInAreaofPoint(playerid,262.7491,75.8460, 269.9738,92.4859))
{
if(!strcmp(jailzahl, "1", true)) {
if(GetPlayerWantedLevel(pID) >= 1) {
formatEx(pID, Rot,"** Officer %s hat die für %d eingespert",PlayerName(playerid));
SetPlayerPos(pID,262.39999,81.9,1001.20001);
SetPlayerFacingAngle(pID,255);
SetPlayerWantedLevel(playerid,0);
jailtime = SetTimerEx("JailTimer",knasttime,false,"i",playerid);
PlayerInfo[playerid][Kanstjail]=1;
return 1;
}
}
if(!strcmp(jailzahl, "2", true)) {
if(GetPlayerWantedLevel(pID) >= 1) {
formatEx(pID, Rot,"** Officer %s hat die für %d eingespert",PlayerName(playerid));
SetPlayerPos(pID,263.29999,82.2,1001);
SetPlayerFacingAngle(pID,255);
SetPlayerWantedLevel(playerid,0);
jailtime = SetTimerEx("JailTimer",knasttime,false,"i",playerid);
PlayerInfo[playerid][Kanstjail]=1;
return 1;
}
}
if(!strcmp(jailzahl, "3", true)) {
if(GetPlayerWantedLevel(pID) >= 1) {
formatEx(pID, Rot,"** Officer %s hat die für %d eingespert",PlayerName(playerid));
SetPlayerPos(pID,264.29999,77.5,1000);
SetPlayerFacingAngle(pID,255);
SetPlayerWantedLevel(playerid,0);
jailtime = SetTimerEx("JailTimer",knasttime,false,"i",playerid);
PlayerInfo[playerid][Kanstjail]=1;
return 1;
}
}
}else {SCM(playerid, Rot,"Du bist nicht vor denn Zellen!");}
}else return SCM(playerid,Rot,"Du bist kein Cop!");
return 1;
}
{
new jailzahl[60],pID;
new knasttime = GetPlayerWantedLevel(pID)*60000;
if(sscanf(params, "dd", pID,jailzahl))return SCM(playerid, Gelb,"[Benutze]: /jaills [PlayerID/PlayerName][KanstZahl( 1 - 3 )]");
//if(pID == playerid)return SCM(playerid,Rot,"Du kannst dich net selber einsperen!");
if(PlayerInfo[playerid][pFraktionsLeader] == 1 || PlayerInfo[playerid][pFraktionsMember] == 1) {
if(IsPlayerInAreaofPoint(playerid,262.7491,75.8460, 269.9738,92.4859))
{
if(!strcmp(jailzahl, "1", true)) {
if(GetPlayerWantedLevel(pID) >= 1) {
formatEx(pID, Rot,"** Officer %s hat die für %d eingespert",PlayerName(playerid));
SetPlayerPos(pID,262.39999,81.9,1001.20001);
SetPlayerFacingAngle(pID,255);
SetPlayerWantedLevel(playerid,0);
jailtime = SetTimerEx("JailTimer",knasttime,false,"i",playerid);
PlayerInfo[playerid][Kanstjail]=1;
return 1;
}
}
if(!strcmp(jailzahl, "2", true)) {
if(GetPlayerWantedLevel(pID) >= 1) {
formatEx(pID, Rot,"** Officer %s hat die für %d eingespert",PlayerName(playerid));
SetPlayerPos(pID,263.29999,82.2,1001);
SetPlayerFacingAngle(pID,255);
SetPlayerWantedLevel(playerid,0);
jailtime = SetTimerEx("JailTimer",knasttime,false,"i",playerid);
PlayerInfo[playerid][Kanstjail]=1;
return 1;
}
}
if(!strcmp(jailzahl, "3", true)) {
if(GetPlayerWantedLevel(pID) >= 1) {
formatEx(pID, Rot,"** Officer %s hat die für %d eingespert",PlayerName(playerid));
SetPlayerPos(pID,264.29999,77.5,1000);
SetPlayerFacingAngle(pID,255);
SetPlayerWantedLevel(playerid,0);
jailtime = SetTimerEx("JailTimer",knasttime,false,"i",playerid);
PlayerInfo[playerid][Kanstjail]=1;
return 1;
}
}
}else {SCM(playerid, Rot,"Du bist nicht vor denn Zellen!");}
}else return SCM(playerid,Rot,"Du bist kein Cop!");
return 1;
}