if(strcmp(cmd, "/equip", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(IsPlayerInRangeOfPoint(playerid,437.1287,-3650.7688,22.2692,217))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, Farbe_Rot, "Hilfe : /bwequip [item nummer]");
SendClientMessage(playerid, Farbe_Gruen, "|_______ Ausrüstung _______|");
SendClientMessage(playerid, Farbe_Gruen, "| 1: Alle Waffen weglegen 2: Messer");
SendClientMessage(playerid, Farbe_Gruen, "| 3: Sniper 4: Rifle");
SendClientMessage(playerid, Farbe_Gruen, "| 5: M4 6: SchalgeämpftePistole");
SendClientMessage(playerid, Farbe_Gruen, "| 7: Standard Ausrütung 8: Fallschirm");
return 1;
}
new item = strval(tmp);
if (item == 1)
{
if(SpielerInfo[playerid][sFraktion] == 18||SpielerInfo[playerid][sBoss] == 18)
{
ResetPlayerWeapons(playerid);
}
}
else if (item == 2)
{
if(SpielerInfo[playerid][sFraktion] == 18||SpielerInfo[playerid][sBoss] == 18)
{
GivePlayerWeapon(playerid, 4, 1);
}
}
else if (item == 3)
{
if(SpielerInfo[playerid][sFraktion] == 18||SpielerInfo[playerid][sBoss] == 18)
{
GivePlayerWeapon(playerid, 34, 9999);
}
}
else if (item == 4)
{
if(SpielerInfo[playerid][sFraktion] == 18||SpielerInfo[playerid][sBoss] == 18)
{
GivePlayerWeapon(playerid, 33, 8000);
}
}
else if (item == 5)
{
if(SpielerInfo[playerid][sFraktion] == 18||SpielerInfo[playerid][sBoss] == 18)
{
GivePlayerWeapon(playerid, 31, 8000);
}
}
else if (item == 6)
{
if(SpielerInfo[playerid][sFraktion] == 18||SpielerInfo[playerid][sBoss] == 18)
{
GivePlayerWeapon(playerid, 23, 700);
}
}
else if (item == 7)
{
if(SpielerInfo[playerid][sFraktion] == 18||SpielerInfo[playerid][sBoss] == 18)
{
GivePlayerWeapon(playerid, 46, 1);
GivePlayerWeapon(playerid, 4, 1);
GivePlayerWeapon(playerid, 31, 8000);
GivePlayerWeapon(playerid, 34, 9999);
SetPlayerArmour(playerid, 100);
SetPlayerHealth(playerid, 100);
}
}
else if (item == 8)
{
if(SpielerInfo[playerid][sFraktion] == 18||SpielerInfo[playerid][sBoss] == 18)
{
GivePlayerWeapon(playerid, 46, 1);
}
}
}
return 1;
}
}
warum geht das nicht ?