AdminScript/Stats
#6

ffs do this:
on top of script:
pawn Код:
#define COLOR_GREEN 0x33AA33AA
2ndly replace COLOR_HERE WITH COLOR_GREEN
3rdly
weapon ids you can find from here:
Weapon Ids
SenClientMessage replace it with SendClientMessage
then do that:
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if (dialogid == spawndialog) {
if(response)
{
switch(listitem) {
case 0 : //Weapon 1
{
GivePlayerWeapon(playerid, WEAPON_M4);
SendClientMessage(playerid, COLOR_GREEN, "You just bought Weapon1!");
}
case 1: //weapon 2
{
GivePlayerWeapon(playerid, WEAPON_AK47);
SenClientMessage(playerid, COLOR_GREEN, "You Just bought Weapon2!");
}
}}}

return 1;
}
3rdly replace ShowPlayerDialog(playerid, "Weapon List", "Weapon 1 blahblah"[/pawn]
with :
pawn Код:
ShowPlayerDialog(playerid, spawndialog, DIALOG_STYLE_LIST, "Weapon List", "M4\nAK47\nAdd other here", "Buy", "Cancel");
Reply


Messages In This Thread
AdminScript/Stats - by Champ - 02.11.2011, 12:55
Re: AdminScript/Stats - by Kingunit - 02.11.2011, 13:04
Re: AdminScript/Stats - by Champ - 02.11.2011, 15:31
Re: AdminScript/Stats - by vassilis - 02.11.2011, 16:47
Re: AdminScript/Stats - by Champ - 02.11.2011, 16:59
Re: AdminScript/Stats - by vassilis - 02.11.2011, 17:02
Re: AdminScript/Stats - by Champ - 02.11.2011, 17:23
Re: AdminScript/Stats - by vassilis - 02.11.2011, 17:26
Re: AdminScript/Stats - by Zonoya - 02.11.2011, 19:55
Re: AdminScript/Stats - by vassilis - 02.11.2011, 19:58

Forum Jump:


Users browsing this thread: 1 Guest(s)