dcmd_jail(playerid,params[]) {
if(ISADMIN[playerid] == 1) {
if(!strlen(params)) return SendClientMessage(playerid,red,"Syntax Error: \"/JAIL <NICK OR ID>\".");
new id; if(!IsNumeric(params)) id = ReturnPlayerID(params); else id = strval(params);
if(IsPlayerConnected(id) && id != INVALID_PLAYER_ID && id != playerid) {
SendCommandMessageToRconAdmins(playerid,"JAIL");
new string[256],name[24],ActionName[24]; GetPlayerName(playerid,name,24); GetPlayerName(id,ActionName,24);
jail[id] = 1;
ISDM[id] = 1;
if(id != playerid) { format(string,256,"Administrator \"%s\" has jailed you.",name); SendClientMessage(id,yellow,string); format(string,256,"You have jailed \"%s\".",ActionName); SendClientMessage(playerid,yellow,string); }
else SendClientMessage(playerid,yellow,"You have jailed yourself.");
return SpawnPlayer(id);
} return SendClientMessage(playerid,red,"ERROR: You can not unjail a disconnected player.");
} else return SendClientMessage(playerid,COLOR_RED,"Du bist kein Admin");
}//FUNZT
dcmd_unjail(playerid,params[]) {
if(ISADMIN[playerid] == 1) {
if(!strlen(params)) return SendClientMessage(playerid,red,"Syntax Error: \"/UNJAIL <NICK OR ID>\".");
new id; if(!IsNumeric(params)) id = ReturnPlayerID(params); else id = strval(params);
if(IsPlayerConnected(id) && id != INVALID_PLAYER_ID && id != playerid) {
SendCommandMessageToRconAdmins(playerid,"UNJAIL");
new string[256],name[24],ActionName[24]; GetPlayerName(playerid,name,24); GetPlayerName(id,ActionName,24);
jail[id] = 0;
ISDM[id] = 0;
if(id != playerid) { format(string,256,"Administrator \"%s\" has unjailed you.",name); SendClientMessage(id,yellow,string); format(string,256,"You have unjailed \"%s\".",ActionName); SendClientMessage(playerid,yellow,string); }
else SendClientMessage(playerid,yellow,"You have unjailed yourself.");
return SpawnPlayer(id);
} return SendClientMessage(playerid,red,"ERROR: You can not unjail a disconnected player.");
} else return SendClientMessage(playerid,COLOR_RED,"Du bist kein Admin");
}//FUNZT
Hier kannst dir ja was draus machen.
Einfach ISADMIN = 1 durch isPlayerADmin ersetzen, dann sollte es gehen.
/jail ist in dem fall verhaften .