Hab mir nen Befehl gemacht aber wenn ich
ich tippe : "/useequip 2" und bekomme nix
mein befehl:
dcmd_useequip(playerid, params[])
{
if(loggedin[playerid] != true) return SCM(playerid,COLOR_WHITE,"SERVER: Du bist nicht eingeloggt!");
if(pInfo[playerid][admin] < 3) return SCM(playerid,COLOR_GREY,"Du bist kein Admin!");
new equip;
if(sscanf(params,"s",equip))
{
SendClientMessage(playerid,COLOR_GREY,"Benutze: /useequip [Waffenpack Nummer]");
SendClientMessage(playerid, COLOR_GREEN, "|_______ Waffenpacks _______|");
SendClientMessage(playerid, COLOR_LIGHTGREEN, "| 1: Alle Waffen weglegen 2: Standartpack");
SendClientMessage(playerid, COLOR_LIGHTGREEN, "| 3: Spezialpack 4: none");
}
switch(equip)
{
case 1: { ResetPlayerWeapons(playerid); }
case 2:
{
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 24, 999);
GivePlayerWeapon(playerid, 29, 999);
GivePlayerWeapon(playerid, 31, 999);
}
case 3:
{
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 4, 0);
GivePlayerWeapon(playerid, 24, 999);
GivePlayerWeapon(playerid, 34, 999);
GivePlayerWeapon(playerid, 46, 999);
GivePlayerWeapon(playerid, 18, 5);
}
case 4: { SCM(playerid, COLOR_LIGHTGREEN, "Error: none"); }
}
return 1;
}
Aber es will i-wie nicht klappen! bitte hilft mir mal