Hallo Community,
Wie kann ich machen das man sich nicht selber entfesseln kann?
Hab zurzeit mein Selfmade und ich bin machtlos wie das gehen soll
System:
dcmd_fesselnweg(playerid,params[])
{
new pID;
if(sscanf(params,"u",pID))return SendClientMessage(playerid,COLOR_RED,"Befehl: /fesseln [playerid]");
if(SInfo[playerid][pLeader] == 4 || SInfo[playerid][pMember] == 4 || SInfo[playerid][pLeader] == 1 || SInfo[playerid][pMember] == 1 || SInfo[playerid][pLeader] == 2 || SInfo[playerid][pMember] == 2)
{
new string[300];
new enname[MAX_PLAYERS];
GetPlayerName(pID, pname, sizeof(pname));
GetPlayerName(playerid, enname, sizeof(enname));
format(string, sizeof(string), "* %s hat es geschafft %s zu entfesseln!", enname, pname);
ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SInfo[pID][pFesseln] = 0;
}
else
{
SendClientMessage(playerid,COLOR_RED,"Du bist in keiner Gang/Mafia!");
}
return 1;
}
LG
Moritz