Zeile 3740:
dcmd_settm(playerid,params[])
{
new pID, rang, pnameb[MAX_PLAYER_NAME];
if(sscanf(params,"ui",pID,rang))return SendClientMessage(playerid,COLOR_ROT,"Befehl: /settm [playerid][Rang]");
if(SInfo[playerid][pAdmin] <= 5)return SendClientMessage(playerid,COLOR_ROT,"Du bist dazu nicht berechtigt.");
{
GetPlayerName(playerid,pname,sizeof(pname));
GetPlayerName(pID,pnameb,sizeof(pnameb));
SInfo[pID][pAdmin] = rang;
format(str,sizeof(str),"Administrator %s hat %s zu Adminrang %d befördert.",pname,pnameb,rang);
SendClientMessageToAll(COLOR_GELB,str);
return 1;
}
return 1;
}
Zeile 3720:
dcmd_setchef(playerid,params[])
{
new pID, rang, pnameb[MAX_PLAYER_NAME];
if(sscanf(params,"ui",pID,rang))return SendClientMessage(playerid,COLOR_ROT,"Befehl: /setchef [playerid][Fraktion]");
if(SInfo[playerid][pAdmin] >= 4)
{
GetPlayerName(playerid,pname,sizeof(pname));
GetPlayerName(pID,pnameb,sizeof(pnameb));
SInfo[pID][pLeader] = rang;
SendClientMessage(playerid,0xFFFFFFFF,"Du hast %s zum Chef der %d gemacht.",pnameb,rang);
format(str,sizeof(str),"Teammitglied %s hat %s zur Fraktion %d hinzugefügt.",pname,pnameb,rang);
SendClientMessageToAll(COLOR_GELB,str);
return 1;
}
return Adminbefehl;
}
Zeile 3350:
dcmd_veh(playerid,params[])
{
new Float:vehx,Float:vehy,Float:vehz;
new vehid,cc1,cc2,string[128];
new vehicleid = GetPlayerVehicleID(playerid);
if(sscanf(params,"iii",vehid,cc1,cc2))return SendClientMessage(playerid,COLOR_ROT,"[Benutze]: /veh [VehicleID][Farbe1][Farbe2]");
if(SInfo[playerid][pAdmin] >= 3)
{
GetPlayerPos(playerid,vehx,vehy,vehz);
new carid = CreateVehicle(vehid,vehx,vehy,vehz,3,cc1,cc2,-1);
SetVehicleNumberPlate(carid,"~>Support<~");
PutPlayerInVehicle(playerid, carid, 0);
format(string,sizeof(string),"Du hast ein Admincar gespawnt! (FahrzeugID :%d)",GetVehicleModel(GetPlayerVehicleID(playerid)));
SendClientMessage(playerid,COLOR_ROT,string);
PutPlayerInVehicle(playerid, carid, 0);
SetVehicleHealth(carid ,10000.0);
}
return 1;
}
Zeile 3257:
dcmd_stadthalle(playerid,params[])
{
if(IsPlayerInRangeOfPoint(playerid,5.0,1427.4633,-991.8095,1639.7843))
{
ShowPlayerDialog(playerid,DIALOG_SH,DIALOG_STYLE_LIST,"Stadthalle","Personalausweis beantragen\nArbeitslosengeld beantragen","Absenden","Abbrechen");
}
else{SendClientMessage(playerid,COLOR_ROT,"Du kannst den Befehl hier nicht benutzen!");}
return 1;
}