public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp("/b", cmdtext, true) == 0 strcmp("/buy", cmdtext, true) == 0)
{
ShowPlayerDialog(playerid,DIALOG_TEAM,DIALOG_STYLE_LIST,"Kaufmenü","Deagle\nM4A1\nAK47\nShotgun\nSniper\nHE-Granaten\nRauchgranaten","Wählen","Abbrechen");
return 1;
if(response==1)
{
if(listitem == 0)
{//M4A1
GivePlayerWeapon(playerid,24,400);
GivePlayerMoney(playerid,-500);
}
if(listitem == 1)
{//M4A1
GivePlayerWeapon(playerid,30,400);
GivePlayerMoney(playerid,-500);
}
if(listitem == 2)
{//AK47
GivePlayerWeapon(playerid,31,400);
GivePlayerMoney(playerid,-1000);
}
if(listitem == 3)
{//Shotgun
GivePlayerWeapon(playerid,25,400);
GivePlayerMoney(playerid,-1000);
}
if(listitem == 4)
{//Sniper
GivePlayerWeapon(playerid,34,400);
GivePlayerMoney(playerid,-1500);
}
if(listitem == 5)
{//Granaten
GivePlayerWeapon(playerid,16,5);
GivePlayerMoney(playerid,-200);
}
if(listitem == 6)
{//Tränengas
GivePlayerWeapon(playerid,17,5);
GivePlayerMoney(playerid,-100);
}
}
}
return 1;
}
Ich bräuchte das in einem Filterscript und weiß nicht wie das geht Immer wenn ich es versuche = 10000000000000000000000 Errors..
Hoffe mir kann BITTE jemand helfen! Ich währe so froh drüber!