Hallo Breadfish,
Ich habe ein Problem undzwar habe ich etwas dummes gemacht an meinem Script...
Undzwar habe ich das iw Falsch eingerückt...
Könnt ihr das bitte für mich einrücken?
Vielen Dank im Vorraus...
Mfg.
Mee
//Edit:
if(strcmp(cmd, "/equip", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "Hilfe : /equip [Item Nummer]");
SendClientMessage(playerid, COLOR_GREEN, "|_______ Ausrüstung _______|");
SendClientMessage(playerid, COLOR_LIGHTGREEN, "| 1: Alle Waffen weglegen 2: Knüppel+Spray");
SendClientMessage(playerid, COLOR_LIGHTGREEN, "| 3: Deagle 4: MP5");
SendClientMessage(playerid, COLOR_LIGHTGREEN, "| 5: M4 6: FBI Ausrüstung");
SendClientMessage(playerid, COLOR_LIGHTGREEN, "| 7: S.E.K. Ausrüstung 8: Standart Ausrüstung");
SendClientMessage(playerid, COLOR_LIGHTGREEN, "| 9: Schutzweste + Leben");
return 1;
}
new item = strval(tmp);
if (item == 1)
{
if(IsACop(playerid))
{
ResetPlayerWeapons(playerid);
}
}
else if (item == 2)
{
if(IsACop(playerid))
{
GivePlayerWeapon(playerid, 3, 1);
GivePlayerWeapon(playerid, 41, 500);
}
}
else if (item == 3)
{
if(IsACop(playerid))
{
GivePlayerWeapon(playerid, 24, 150);
}
}
else if (item == 4)
{
if(IsACop(playerid))
{
GivePlayerWeapon(playerid, 29, 800);
GetPlayerName(playerid, sendername, sizeof(sendername));
}
}
else if (item == 5)
{
if(IsACop(playerid))
{
GivePlayerWeapon(playerid, 31, 800);
GetPlayerName(playerid, sendername, sizeof(sendername));
}
}
else if (item == 6)
{
if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
{
GivePlayerWeapon(playerid, 24, 500);
GivePlayerWeapon(playerid, 29, 800);
GivePlayerWeapon(playerid, 31, 500);
GivePlayerWeapon(playerid, 34, 500);
GetPlayerName(playerid, sendername, sizeof(sendername));
}
else SendClientMessage(playerid,COLOR_RED,"Du bist kein FBI-Agent");
}
else if (item == 7)
{
if(IsACop(playerid))
{
if(PlayerInfo[playerid][pRank] >= 7 || Allowswat == true)
{
SetPlayerHealth(playerid,100.0);
SetPlayerArmour(playerid,100.0);
SetPlayerSkin(playerid,285);
GivePlayerWeapon(playerid, 29, 1000);
GivePlayerWeapon(playerid, 17, 100);
GivePlayerWeapon(playerid, 24, 1000);
GivePlayerWeapon(playerid, 29, 1000);
GivePlayerWeapon(playerid, 31, 5000);
GivePlayerWeapon(playerid, 34, 5000);
GivePlayerWeapon(playerid, 46, 1);
GivePlayerWeapon(playerid, 3, 1);
GivePlayerWeapon(playerid, 41, 1000);
GetPlayerName(playerid, sendername, sizeof(sendername));
SendClientMessage(playerid, COLOR_GREEN, "Du hast dich ausgerüstet!");
}
else
{
SendClientMessage(playerid, COLOR_RED, "Du musst ein S.E.K. Mitglied");
}
}
}
else if (item == 8)
{
if(IsACop(playerid))
{
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 3, 1);//schlagstock
GivePlayerWeapon(playerid, 41, 500);//spray
GivePlayerWeapon(playerid, 25, 500);//Shotgun
GivePlayerWeapon(playerid, 31, 1500);//M4
GivePlayerWeapon(playerid, 24, 150);//Deagle
GivePlayerWeapon(playerid, 29, 500);//Mp5
SetPlayerArmour(playerid, 100);
SetPlayerHealth(playerid, 100);
}
}
else if (item == 9)
{
if(IsACop(playerid))
{
SetPlayerArmour(playerid, 100);
SetPlayerHealth(playerid, 100);
GetPlayerName(playerid, sendername, sizeof(sendername));
}
}
else if (item == 11210)
{
if(IsACop(playerid))
{
new originalskin = PlayerInfo[playerid][pModel];
SetPlayerSkin(playerid, originalskin);
GetPlayerName(playerid, sendername, sizeof(sendername));
}
}
else if (item == 11121)
{
if(IsACop(playerid))
{
new originalskin = PlayerInfo[playerid][pModel];
SetPlayerSkin(playerid, originalskin);
}
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "Falsches Item oder du bist nicht dazu befugt!");
return 1;
}
}
return 1;
}
return 1;
}