Question
#1

is there a way to change this dialog's place , like putting it on the right or the left "DIALOG_STYLE_MSGBOX" , anyone can tell me ....

there a way i can put a command to just increase the player's weapon's ammo not using GivePlayerWeapon ?? i mean just to increase his ammo so no one can buy the ammo from shop without having the weapon??
________
Wellbutrin Death
Reply
#2

Quote:
Originally Posted by aircombat
is there a way to change this dialog's place , like putting it on the right or the left "DIALOG_STYLE_MSGBOX" , anyone can tell me ....
I'm not sure, I think its always in the middle.

Quote:
Originally Posted by aircombat
there a way i can put a command to just increase the player's weapon's ammo not using GivePlayerWeapon ?? i mean just to increase his ammo so no one can buy the ammo from shop without having the weapon??
Depends on what you mean, You can have a shop option like /buyammo gun ammount and if you don't have the gun variable to 1 (which you would get from buying a weapon) it wont allow you to buy the ammo for example

if(PlayerInfo[playerid][pM4] == 0) return SendClientMessage(playerid, COLOR_GREEN, "You do not own an M4 so you cannot buy Ammo for it");

If your talking about ammunition I'm not sure.
Reply
#3

here is the ip of the server i found the dialog in the right "208.53.152.26:7788" and for the ammo , i meant a command /buyammo so it gives the player extra ammo
________
Honda Cm125 Specifications
Reply
#4

*Bump*
________
MEDICAL MARIJUANA
Reply
#5

*Bump*
________
Fix ps3
Reply
#6

i use this:

pawn Код:
if(strcmp(cmd, "/ammo", true) == 0) {
    new playerweapon;
    new playercash;
    playercash = GetPlayerMoney(playerid);

    playerweapon = GetPlayerWeapon(playerid);
    if(playercash > 20) {
      if(playerweapon != 35) {
        GivePlayerWeapon(playerid, playerweapon, 25);
        SendClientMessage(playerid, 0xFFFFFFAA, "25 ammo purchased.");
        GivePlayerMoney(playerid, -20);
      }
      if(playerweapon == 35) {
        GivePlayerWeapon(playerid, playerweapon, 5);
        SendClientMessage(playerid, 0xFFFFFFAA, "5 ammo purchased.");
        GivePlayerMoney(playerid, -20);
      }
    }
    else {
      SendClientMessage(playerid, 0xFFFFFFAA, "You need more money.");
    }
    return 1;
  }
weapon 35 is the rocket launcher
Reply
#7

thnx dude very much
________
Mexico Hotels
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)