Hey Leute habe 2 Fragen und zwar wenn ich /jobhelp mache zeigt mir nix an oder für den Job den ich garnicht habe. Und das 2 ist wenn ich /admincmd mache dann zeigt er mir: SendClientMessage(playerid,COLOR_GRAD5,"JobId's: ArbeitsLos: 0 | Cop:1 | Medic: 2 | Makler: 3 | Adac: 4 | Taxi: 5 | Pilot: 6 | N24: 7 | Bänker: 8 | Autoverkaüfer: 9 | ChipMafia: 10 | Oli: 11 | PacketDienst: 12 | Fahrschule: 13 | SCU Mafia: 14"); } <- Das zeigt er mir nicht an...
So Die 2 CMDS :
if(strcmp(cmd, "/jobhelp", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pJob]==Medic ||PlayerInfo[playerid][pJob2]==Medic ||PlayerInfo[playerid][pJob3]==Medic ||PlayerInfo[playerid][pJob4]==Medic ||PlayerInfo[playerid][pJob5]==Medic)
SendClientMessage(playerid,COLOR_GRAD5,"Medic: /heal /healself /pc");
if(PlayerInfo[playerid][pJob]==Cop ||PlayerInfo[playerid][pJob2]==Cop ||PlayerInfo[playerid][pJob3]==Cop ||PlayerInfo[playerid][pJob4]==Cop ||PlayerInfo[playerid][pJob5]==Cop)
SendClientMessage(playerid,COLOR_GRAD5,"Police: /cuff /uncuff /wanted /rechts /pc /unjail /jail");
if(PlayerInfo[playerid][pJob]==Makler ||PlayerInfo[playerid][pJob2]==Makler ||PlayerInfo[playerid][pJob3]==Makler ||PlayerInfo[playerid][pJob4]==Makler ||PlayerInfo[playerid][pJob5]==Makler)
SendClientMessage(playerid,COLOR_GRAD5,"Makler: /verbieten /erlauben /savespawn /poslöschen /pc");
if(PlayerInfo[playerid][pJob]==N24 ||PlayerInfo[playerid][pJob2]==N24 ||PlayerInfo[playerid][pJob3]==N24 ||PlayerInfo[playerid][pJob4]==N24 ||PlayerInfo[playerid][pJob5]==N24)
SendClientMessage(playerid,COLOR_GRAD5,"N24 Reporter: /news /pc");
}
return 1;
}
if(strcmp(cmd, "/admincmd", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdminLevel]>=1) {
SendClientMessage(playerid,COLOR_GRAD5,"/whitelist /givejob /setskin /clear /kick /ban /sethp /setamour /freeze /unfreeze"); }
if(PlayerInfo[playerid][pAdminLevel]>=1) {
SendClientMessage(playerid,COLOR_GRAD5,"JobId's: ArbeitsLos: 0 | Cop:1 | Medic: 2 | Makler: 3 | Adac: 4 | Taxi: 5 | Pilot: 6 | N24: 7 | Bänker: 8 | Autoverkaüfer: 9 | ChipMafia: 10 | Oli: 11 | PacketDienst: 12 | Fahrschule: 13 | SCU Mafia: 14"); }
if(PlayerInfo[playerid][pAdminLevel]>=2) {
SendClientMessage(playerid,COLOR_GRAD5,"/makeadmin /setmoney"); }
}
return 1;
}