Hey Leute
also ich hab ein gangjail und uns ist heute aufgefallen, dass wenn ich /bajail eingebe komme ich wie gewünscht ins gangjail.. wenn ich dann aber mit /baunjail raugeholt werde und z.b. ans LSPD laufe und jemand gibt /bajail [ID] ein werde ich wieder ins Gangjail geportet.
hier die zeilen.
if(strcmp(cmd,"/bajail",true) == 0)
{
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
if(IsPlayerConnected(playerid))
{
if(IsPlayerInRangeOfPoint(playerid,5.5,2000.7942,-1095.8110,24.9841))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Benutze: /bajail [playerid]");
return 1;
}
new para1;
para1 = ReturnUser(tmp);
if(para1 == playerid)
{
SendClientMessage(playerid,COLOR_GRAD2," Du kannst dich nicht selbst Jailen!");
return 1;
}
if(PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14)
{
if(IsPlayerConnected(para1))
{
if(para1 != INVALID_PLAYER_ID && gjailed == 0 || PlayerInfo[para1][pMember] != 14 || PlayerInfo[para1][pLeader] != 14)
{
if(IsPlayerInRangeOfPoint(para1,5.5,2000.7942,-1095.8110,24.9841))
{
if(GetPlayerState(para1) == PLAYER_STATE_PASSENGER)
{
SetPlayerPos(para1,2007.2034,-1097.9321,25.0039);
gjailed = 1;
new string2[128], pname[MAX_PLAYER_NAME];
GetPlayerName(playerid,pname,sizeof(pname));
format(string2,sizeof(string2),"*%s hat %s in den Gangknast gesteckt",sendername,giveplayer);
ProxDetector(30.0, playerid, string2, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
format(string2,sizeof(string2),"*Du du wurdest von %s in den Gangknast gesteckt",sendername);
SendClientMessage(para1,L_O,string);
}
}
}
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " Du darfst diesen Befehl nicht benutzen!!");
}
}
else
{
SendClientMessage(playerid,COLOR_GRAD6," Du bist nicht beim Gangjail!");
}
}
}
else
{
SendClientMessage(playerid,COLOR_GRAD6," Du bist in keinem Fahrzeug");
}
return 1;
}
if(strcmp(cmd,"/baunjail",true) == 0)
{
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
if(IsPlayerConnected(playerid))
{
if(IsPlayerInRangeOfPoint(playerid,5.5,2000.7942,-1095.8110,24.984))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Benutze: /baunjail [playerid]");
return 1;
}
new para1;
para1 = ReturnUser(tmp);
if(PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14 || PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3 || PlayerInfo[playerid][pMember] == 21 || PlayerInfo[playerid][pLeader] == 21)
{
if(IsPlayerConnected(para1))
{
if(para1 != INVALID_PLAYER_ID || GetPlayerState(para1) == PLAYER_STATE_PASSENGER || gjailed == 0)
{
SetPlayerPos(para1,2000.7942,-1095.8110,24.984);
gjailed = 1;
}
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " Du gehörst nicht zu den Ballas!");
}
}
else
{
SendClientMessage(playerid,COLOR_GRAD6," Du bist nicht beim Gangjail!");
}
}
}
return 1;
}
ich danke im vorraus