Maybe you have 1 command???
#1

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.
Reply
#2

Please HELP me
Reply
#3

Could you explain what you want that command to do?
Reply
#4

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.
Reply
#5

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;
}
Reply
#6

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.
Reply
#7

No, why don't you learn how to do it yourself. Doing that won't be too hard!

http://wiki.sa-mp.com
Reply
#8

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...
Reply
#9

This should help alot.
http://forum.sa-mp.com/forumdisplay.php?f=35
Reply
#10

Quote:
Originally Posted by [MP]Ditch
Посмотреть сообщение
Thanks
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)