Maybe you have 1 command??? -
Mecool - 10.01.2012
Hi!
This is the Weapon Dealer cmd. This for RP servers.
They write /sellweapon [weapon ammo] [ammo price]
But I have this /giveweapon [ammo], but me must /sellweapon [weapon ammo] [ammo price]
1.Weapon ammo- how much ammo you will sold
2.Ammo price- Price for a sell ammo, in Nr.1
I don't know, how explain this.
Re: Maybe you have 1 command??? -
Mecool - 10.01.2012
Please HELP me
Re: Maybe you have 1 command??? -
Mean - 10.01.2012
Could you explain what you want that command to do?
Re: Maybe you have 1 command??? -
Mecool - 10.01.2012
This is the Weapon Dealer cmd. This for RP servers.
They write /sellweapon [weapon ammo] [ammo price]
But I have this /giveweapon [ammo], but me must /sellweapon [weapon ammo] [ammo price]
1.Weapon ammo- how much ammo you will sold
2.Ammo price- Price for a sell ammo, in Nr.1
I don't know, how explain this.
Re: Maybe you have 1 command??? -
Scenario - 10.01.2012
This is a really crappy command that I threw together in a minute. You'll probably want to change it up a little and add some checks!
pawn Код:
CMD:sellweapon(playerid, params[])
{
new iTar, iWeap, iPrice;
if(sscanf(params, "rii", iTar, iWeap, iPrice))
return SendClientMessage(playerid, COLOR_WHITE, "SYNTAX: /sellweapon [nick/id] [weapon ID] [price]");
if(iTar == INVALID_PLAYER_ID)
return SendClientMessage(playerid, COlOR_RED, "ERROR: You entered an invalid nickname/ID.");
GivePlayerMoney(playerid, iPrice);
GivePlayerMoney(iTar, -iPrice);
GivePlayerWeapon(iTar, iWeap);
return 1;
}
Re: Maybe you have 1 command??? -
Mecool - 10.01.2012
Yes thanks. But you can you do, that the person can sell the weapon when he have desired weapon in the arms. If hi haven't weapon in the arms he can not sell weapon. With weapon ID is very badly. Which weapon he have in arms that and he and sell the person who want.
You understood me, because I am from Lithuanian, sorry for my English.
Re: Maybe you have 1 command??? -
Scenario - 10.01.2012
No, why don't you learn how to do it yourself. Doing that won't be too hard!
http://wiki.sa-mp.com
Re: Maybe you have 1 command??? -
Mecool - 10.01.2012
This cmd very Hard for me

I learning but simple things. I am the new boy in Pawno
You can do it this cmd I know

Please help me...
Re: Maybe you have 1 command??? -
BleverCastard - 10.01.2012
This should help alot.
http://forum.sa-mp.com/forumdisplay.php?f=35
Re: Maybe you have 1 command??? -
Mecool - 11.01.2012
Quote:
Originally Posted by [MP]Ditch
|
Thanks