Question - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Question (
/showthread.php?tid=128417)
Question -
aircombat - 17.02.2010
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
Re: Question -
MisterTickle - 17.02.2010
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.
Re: Question -
aircombat - 17.02.2010
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
Re: Question -
aircombat - 18.02.2010
*Bump*
________
MEDICAL MARIJUANA
Re: Question -
aircombat - 18.02.2010
*Bump*
________
Fix ps3
Re: Question -
adsy - 18.02.2010
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
Re: Question -
aircombat - 18.02.2010
thnx dude very much
________
Mexico Hotels