[HOW TO DO]When player is on pickup to show this - 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)
+--- Thread: [HOW TO DO]When player is on pickup to show this (
/showthread.php?tid=520871)
[HOW TO DO]When player is on pickup to show this -
Connor Smith - 20.06.2014
http://prntscr.com/3us7la
MATERIALS-PACKETS
Ammount: 0 or how much packets have..?
Re: [HOW TO DO]When player is on pickup to show this -
kosa451 - 20.06.2014
English translation please.
Re: [HOW TO DO]When player is on pickup to show this -
SickAttack - 20.06.2014
Here's an example, edit it and make it update correctly.
pawn Код:
#define PICKUP_1 0
public OnPlayerPickUpPickup(playerid, pickupid){
new string[128];
if(pickupid == PICKUP_1{
new amount = 15;
format(string, sizeof(string), "~r~~h~MATERIALS-PACKETS\n~w~~h~Amount: ~y~%d", amount);
GameTextForPlayer(playerid, string, 5000, 3);}
return 1;}
Re: [HOW TO DO]When player is on pickup to show this -
Bek_Loking - 20.06.2014
Materiali - Paketi - Materials - Packs
Just translating, don't know the script though
Re: [HOW TO DO]When player is on pickup to show this -
Connor Smith - 20.06.2014
Thanks!
DONE
EDIT: Its ok, its working, but when someone take that materials and how to make to show 0 materials if ammount of materials packs is 0?
Re: [HOW TO DO]When player is on pickup to show this -
Connor Smith - 22.06.2014
Quote:
Originally Posted by Connor Smith
Thanks!
DONE
EDIT: Its ok, its working, but when someone take that materials and how to make to show 0 materials if ammount of materials packs is 0?
|
Can anyone help?
Re: [HOW TO DO]When player is on pickup to show this -
Connor Smith - 22.06.2014
Quote:
Originally Posted by Connor Smith
Can anyone help?
|
Sorry for spam...
Re: [HOW TO DO]When player is on pickup to show this -
Onfroi - 23.06.2014
pawn Код:
if(amount = 0) GameTextForPlayer(playerid, "~r~~h~MATERIALS-PACKETS\n~w~~h~Amount: ~y~0", 5000, 3);