Hallo.
Ich möchte das hier in ein Filterscript bringen.
Weiß aber nicht wie.
Bitte helft mir.
}
if(strcmp(cmd,"/gsjail",true) == 0)
{
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
if(IsPlayerConnected(playerid))
{
if(IsPlayerInRangeOfPoint(playerid,5.5,2432.1873,-1667.2756,13.5346))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Benutze: /gsjail [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] == 13 || PlayerInfo[playerid][pLeader] == 13)
{
if(IsPlayerConnected(para1))
{
if(para1 != INVALID_PLAYER_ID && gjailed == 0 || PlayerInfo[para1][pMember] != 13 || PlayerInfo[para1][pLeader] != 13)
{
if(IsPlayerInRangeOfPoint(para1,5.5,2432.1873,-1667.2756,13.5346))
{
if(GetPlayerState(para1) == PLAYER_STATE_PASSENGER)
{
SetPlayerPos(para1,2431.7326660156,-1673.6110839844,14.575711250305);
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,"/gsunjail",true) == 0)
{
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
if(IsPlayerConnected(playerid))
{
if(IsPlayerInRangeOfPoint(playerid,5.5,2432.1873,-1667.2756,13.5346))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Benutze: /gsunjail [playerid]");
return 1;
}
new para1;
para1 = ReturnUser(tmp);
if(PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13 || 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,2432.1873,-1667.2756,13.5346);
gjailed = 1;
}
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " Du gehörst nicht zu der Groove Street!");
}
}
else
{
SendClientMessage(playerid,COLOR_GRAD6," Du bist nicht beim Gangjail!");
}
}
}
return 1;
}
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,758.5106,-1126.7742,24.5839);
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;
}