SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts

Reply
 
Thread Tools Display Modes
Old 30/10/2009, 04:38 PM   #11
eXchainZ-FoReVeR
Huge Clucker
 
Join Date: Jan 2009
Posts: 294
Reputation: 0
Default Re: [FS] Fallout's HealthPacks

Hehe; I took the TextDraw's.

All credits goes to you, mate.
eXchainZ-FoReVeR is offline   Reply With Quote
Old 30/10/2009, 06:46 PM   #12
SamSam
Little Clucker
 
Join Date: Oct 2009
Posts: 49
Reputation: 0
Default Re: [FS] Fallout's HealthPacks

Ye ye nice work oh ye!!!
SamSam is offline   Reply With Quote
Old 26/01/2010, 09:37 PM   #13
John Rockie
Huge Clucker
 
Join Date: Dec 2009
Posts: 319
Reputation: 20
Default Re: [FS] Fallout's HealthPacks

Nice
John Rockie is offline   Reply With Quote
Old 29/01/2010, 05:31 PM   #14
GforceNL
Huge Clucker
 
Join Date: May 2009
Posts: 238
Reputation: 0
Default Re: [FS] Fallout's HealthPacks


it looks very nice!
GforceNL is offline   Reply With Quote
Old 24/03/2010, 07:34 AM   #15
Samy_Romafia
Banned
 
Join Date: Nov 2009
Posts: 76
Reputation: 0
Default Re: [FS] Fallout's HealthPacks

Nice
Samy_Romafia is offline   Reply With Quote
Old 12/03/2011, 05:51 PM   #16
[DR]Reaper[GEARS]
Big Clucker
 
[DR]Reaper[GEARS]'s Avatar
 
Join Date: Feb 2011
Posts: 72
Reputation: 0
Default AW: [FS] Fallout's HealthPacks

Lolz have you all ever looked in the script?
loops are not yours mate^^
You could Do the Checks all in one loop
__________________
[DR]Reaper[GEARS] is offline   Reply With Quote
Old 12/03/2011, 05:54 PM   #17
[DR]Reaper[GEARS]
Big Clucker
 
[DR]Reaper[GEARS]'s Avatar
 
Join Date: Feb 2011
Posts: 72
Reputation: 0
Default AW: [FS] Fallout's HealthPacks

Use This as you onplayerpickup poickup

public OnPlayerPickUpPickup(playerid, pickupid)
{
for(new checks = 0;checks<14;checks++){
if (pickupid == HealthPack[checks])
{
if(PlayerHealthPacks[playerid] < 4)
{
PlayerHealthPacks[playerid] ++;
HidePlayerInfoTextDraws(playerid);
TextDrawShowForPlayer(playerid, Text:PickedUpAHealthPack);
KillTimer(HidePlayerInfoTextDrawst[playerid]);
HidePlayerInfoTextDrawst[playerid] = SetTimerEx("HidePlayerInfoTextDraws", 4000, 0, "i", playerid);

if(PlayerHealthPacks[playerid] == 1)
{
TextDrawShowForPlayer(playerid, Text:OneHealthPack);
}
if(PlayerHealthPacks[playerid] == 2)
{
TextDrawHideForPlayer(playerid, Text:OneHealthPack);
TextDrawShowForPlayer(playerid, Text:TwoHealthPacks);
}
if(PlayerHealthPacks[playerid] == 3)
{
TextDrawHideForPlayer(playerid, Text:TwoHealthPacks);
TextDrawShowForPlayer(playerid, Text:ThreeHealthPacks);
}
if(PlayerHealthPacks[playerid] == 4)
{
TextDrawHideForPlayer(playerid, Text:ThreeHealthPacks);
TextDrawShowForPlayer(playerid, Text:FourHealthPacks);
}
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof name);
printf("[HealthPacks] %s picked up a health pack. (total: %i)", name, PlayerHealthPacks[playerid]);
}
else
{
PlayerPlaySound(playerid, 1058, 0.0, 0.0, 0.0);
HidePlayerInfoTextDraws(playerid);
TextDrawShowForPlayer(playerid, Text:AlreadyMaxHealthPacks);
KillTimer(HidePlayerInfoTextDrawst[playerid]);
HidePlayerInfoTextDrawst[playerid] = SetTimerEx("HidePlayerInfoTextDraws", 4000, 0, "i", playerid);
}
}
}
}
__________________
[DR]Reaper[GEARS] is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[FilterScript] [FS] Fallout's SpeedoMeter - Updated for 0.3! ғαιιοцт Filterscripts 210 22/06/2019 09:29 PM
[Include] [INC/FS] Fallout's Object Streamer v1.2 for 0.3e (updated on 20-09-'12 ~ new features!) ғαιιοцт Includes 547 18/06/2016 02:23 PM
[FilterScript] [FS] Fallout's Money Drops (configurable) ғαιιοцт Filterscripts 39 09/03/2011 10:14 AM
[GM-Addon] Fallout's Personal NRG command (easy to use) ғαιιοцт Help Archive 21 25/05/2010 04:37 PM
[FilterScript] [FS] Fallout's Death camera ғαιιοцт Filterscripts 36 11/04/2010 09:08 AM


All times are GMT. The time now is 07:15 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.