GTAinside.com - Grand Theft Auto Mods, Addons, Cars, Maps, Skins and more.

Go Back   GTAinside.com Foren > GTA San Andreas > Multiplayer

Reply
 
Thread Tools Rate Thread
Old 02.08.2011, 17:48   #1
mrbeam
Registered User
 
Join Date: Aug 2011
Posts: 5
/SHOP Kommando (WAFFEN)

Hi
Dies ich bin ganz neu hier und dies ist mein ertser Post.
Es geht um ein /SHOP kommdo was man z.B. in einem Deathmatch Mod sehr gut gebrauchen kann.


Spoiler für Shop Kommando (waffen):
OnPlayerCommandText (Die ganzen Auswahlmöglichkeinten alle hinternander schreiben!!!!!)

if(strcmp(cmdtext,"/SHOP",true,10)==0)
{
ShowPlayerDialog(playerid,DIALOG_SHOP_MAIN_MENU,DI ALOG_STYLE_LIST,"SHOP","Pistols\nSub Machine Guns\nShotguns\nArmours\nSMG\nAssaut\nRilfes","Sel ect","Cancel"); return 1;
}

OnDialogResponse (hier auch wieder die ganzen waffen hintereinander schreiben)


{
if(dialogid==DIALOG_SHOP_MAIN_MENU)
{
if(response==1)
switch(listitem)
{
//////////////////////////////
case 0:
{
ShowPlayerDialog(playerid,DIALOG_SHOP_PISTOLS_MENU ,DIALOG_STYLE_LIST,"Pistols","9mm (200$)\nSilenced 9mm (600$)\nDesert Eagle (1200$)","Select","Cancel");
}
//////////////////////////////
case 1:
{
ShowPlayerDialog(playerid,DIALOG_SHOP_SUB_MACHINE_ GUNS_MENU,DIALOG_STYLE_LIST,"Sub Machine Guns","Tec9 (300$)\nMicro SMG (500$)","Select","Cancel");
}
/////////////////////////////
case 2:
{
ShowPlayerDialog(playerid,DIALOG_SHOP_SHOTGUNS_MEN U,DIALOG_STYLE_LIST,"Shotguns","Shotgun (600$)\nCombat Shotgun (1000$)","Select","Cancel");
}
////////////////////////////
case 3:
{
ShowPlayerDialog(playerid,DIALOG_SHOP_ARMOURS_MENU ,DIALOG_STYLE_LIST,"Armours","Armour (2000$)","Select","Cancel");
}
//////////////////////////
case 4:
{
ShowPlayerDialog(playerid,DIALOG_SHOP_SMG_MENU,DIA LOG_STYLE_LIST,"SMG","SMG (200$)","Select","Cancel");
}
/////////////////////////
case 5:
{
ShowPlayerDialog(playerid,DIALOG_SHOP_ASSAULT_MENU ,DIALOG_STYLE_LIST,"Assaults","AK (3500$)\nM4 (4500$)","Select","Cancel");
}
////////////////////////
case 6:
{
ShowPlayerDialog(playerid,DIALOG_SHOP_RILFES_MENU, DIALOG_STYLE_LIST,"Rilfes","Country Sniper (1000$)\nSniper (2000$)","Select","Cancel");
}
///////////////////////
}
}
//////////
//////////// (DIE GANZEN WAFFEN)
/////////////
/////////////////
if(dialogid==DIALOG_SHOP_PISTOLS_MENU)
{
if(response==1)
switch(listitem)
{
case 0:
if(GetPlayerMoney(playerid)>199)
{
SendClientMessage(playerid,BLAU,"Thx for buying: 9mm");
GivePlayerWeapon(playerid,22,300);
GivePlayerMoney(playerid, -200);
}
else
{
SendClientMessage(playerid,ROT,"You havn't enougt money");
}
}
}

//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^//
if(dialogid==DIALOG_SHOP_PISTOLS_MENU)
{
if(response==1)
switch(listitem)
{
case 1:
if(GetPlayerMoney(playerid)>599)
{
SendClientMessage(playerid,BLAU,"Thx for buying: Silenced 9mm");
GivePlayerWeapon(playerid,23,300);
GivePlayerMoney(playerid, -600);
}
else
{
SendClientMessage(playerid,ROT,"You havn't enougt money");
}
}
}
//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^//
if(dialogid==DIALOG_SHOP_PISTOLS_MENU)
{
if(response==1)
switch(listitem)
{
case 2:
if(GetPlayerMoney(playerid)>1199)
{
SendClientMessage(playerid,BLAU,"Thx for buying: Desert Eagle");
GivePlayerWeapon(playerid,24,300);
GivePlayerMoney(playerid, -1200);
}
else
{
SendClientMessage(playerid,ROT,"You havn't enougt money");
}
}
}
/////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////
if(dialogid==DIALOG_SHOP_SUB_MACHINE_GUNS_MENU)
{
if(response==1)
switch(listitem)
{
case 0:
if(GetPlayerMoney(playerid)>299)
{
SendClientMessage(playerid,BLAU,"Thx for buying: Tec9");
GivePlayerWeapon(playerid,32,500);
GivePlayerMoney(playerid, -300);
}
else
{
SendClientMessage(playerid,ROT,"You havn't enougt money");
}
}
}
//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^//
if(dialogid==DIALOG_SHOP_SUB_MACHINE_GUNS_MENU)
{
if(response==1)
switch(listitem)
{
case 1:
if(GetPlayerMoney(playerid)>499)
{
SendClientMessage(playerid,BLAU,"Thx for buying: Mico SMG");
GivePlayerWeapon(playerid,28,500);
GivePlayerMoney(playerid, -500);
}
else
{
SendClientMessage(playerid,ROT,"You havn't enougt money");
}
}
}
///////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////
if(dialogid==DIALOG_SHOP_SHOTGUNS_MENU)
{
if(response==1)
switch(listitem)
{
case 0:
if(GetPlayerMoney(playerid)>599)
{
SendClientMessage(playerid,BLAU,"Thx for buying: Shotgun");
GivePlayerWeapon(playerid,25,300);
GivePlayerMoney(playerid, -600);
}
else
{
SendClientMessage(playerid,ROT,"You havn't enougt money");
}
}
}
//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^//
if(dialogid==DIALOG_SHOP_SHOTGUNS_MENU)
{
if(response==1)
switch(listitem)
{
case 1:
if(GetPlayerMoney(playerid)>999)
{
SendClientMessage(playerid,BLAU,"Thx for buying: Combat Shotgun");
GivePlayerWeapon(playerid,27,100);
GivePlayerMoney(playerid, -1000);
}
else
{
SendClientMessage(playerid,ROT,"You havn't enougt money");
}
}
}
///////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////
if(dialogid==DIALOG_SHOP_ARMOURS_MENU)
{
if(response==1)
switch(listitem)
{
case 0:
if(GetPlayerMoney(playerid)>1999)
{
SendClientMessage(playerid,BLAU,"Thx for buying: Armour");
SetPlayerArmour(playerid,100);
GivePlayerMoney(playerid, -2000);
}
else
{
SendClientMessage(playerid,ROT,"You havn't enougt money");
}
}
}
///////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////
if(dialogid==DIALOG_SHOP_SMG_MENU)
{
if(response==1)
switch(listitem)
{
case 0:
if(GetPlayerMoney(playerid)>199)
{
SendClientMessage(playerid,BLAU,"Thx for buying: MP5");
GivePlayerWeapon(playerid,29,500);
GivePlayerMoney(playerid, -200);
}
else
{
SendClientMessage(playerid,ROT,"You havn't enougt money");
}
}
}
///////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////
if(dialogid==DIALOG_SHOP_ASSAULT_MENU)
{
if(response==1)
switch(listitem)
{
case 0:
if(GetPlayerMoney(playerid)>3499)
{
SendClientMessage(playerid,BLAU,"Thx for buying: AK");
GivePlayerWeapon(playerid,30,500);
GivePlayerMoney(playerid, -3500);
}
else
{
SendClientMessage(playerid,ROT,"You havn't enougt money");
}
}
}
//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^//
if(dialogid==DIALOG_SHOP_ASSAULT_MENU)
{
if(response==1)
switch(listitem)
{
case 1:
if(GetPlayerMoney(playerid)>4499)
{
SendClientMessage(playerid,BLAU,"Thx for buying: M4");
GivePlayerWeapon(playerid,31,500);
GivePlayerMoney(playerid, -4500);
}
else
{
SendClientMessage(playerid,ROT,"You havn't enougt money");
}
}
}
///////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////
if(dialogid==DIALOG_SHOP_RILFES_MENU)
{
if(response==1)
switch(listitem)
{
case 0:
if(GetPlayerMoney(playerid)>999)
{
SendClientMessage(playerid,BLAU,"Thx for buying: Country Rilfe");
GivePlayerWeapon(playerid,33,300);
GivePlayerMoney(playerid, -1000);
}
else
{
SendClientMessage(playerid,ROT,"You havn't enougt money");
}
}
}
//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^//
if(dialogid==DIALOG_SHOP_RILFES_MENU)
{
if(response==1)
switch(listitem)
{
case 1:
if(GetPlayerMoney(playerid)>1999)
{
SendClientMessage(playerid,BLAU,"Thx for buying: Sniper");
GivePlayerWeapon(playerid,34,300);
GivePlayerMoney(playerid, -2000);
}
else
{
SendClientMessage(playerid,ROT,"You havn't enougt money");
}
}
}


WÄRE SCHÖN WENN JEMAND DAS IN EINEN SPOILER REINTUEN WÜRDE
ICH WEIß LEIDER NICHT WIE's GEHT^^

Rastaman:\Einfach wenn du mit schreiben fertig bist,den Txt den du spoilern möchtest markieren und den Spoilerbutton klicken.In dem Pop up einen Namen für den Spoiler eingeben und bestätigen...
mrbeam is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 22:08.