SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 26/11/2017, 02:05 PM   #1
Mivco
Big Clucker
 
Mivco's Avatar
 
Join Date: Mar 2015
Location: Slovakia
Posts: 60
Reputation: 0
Post Pickup, 3D Text and MAP ICON

HI all, I have a map where I created in one stock pickup and 3D text and map icon, only a map icon is created and nothing more.

Code: OnGameMode
PHP Code:
AddBenzinka(4711.4292,189.8578,12.1993);
AddBenzinka(4703.7734,189.9148,12.1993);
AddBenzinka(5905.7690,-112.8237,12.2998);
AddBenzinka(5904.8530,-129.2558,12.2998);

CreateBank(04765.4922,-123.1113,12.4517);
CreateBank(14346.5586,917.3823,12.2172);
CreateBank(25888.8960,-136.4411,12.2998); 
Stock:

PHP Code:
forward CreateBank(bankidFloat:xFloat:yFloat:z);
public 
CreateBank(bankidFloat:xFloat:yFloat:z)
{
    
BankPickup[bankid] = CreateDynamicPickup(127423xyz0,0,0,50.0);
    
CreateDynamic3DTextLabel("Banka",COLOR_GREEN_DARK,x,y,z,40,0INVALID_PLAYER_IDINVALID_VEHICLE_ID0);
    
CreateDynamicMapIcon(xyz52COLOR_BLUE0,0,0100.0MAPICON_LOCAL);
    return 
1;
}

forward AddBenzinka(Float:xFloat:yFloat:z);
public 
AddBenzinka(Float:x,Float:y,Float:z)
{
    
BenzinCount ++;
    if(
BenzinCount >= MAX_BENZIN) return print("Bol prekroceny max. pocet benzinek !");
    
CreateDynamicPickup(16861xyz0,0,0,50.0);
    
CreateDynamic3DTextLabel("Pumpa",COLOR_GREEN_DARK,x,y,z,40,0INVALID_PLAYER_IDINVALID_VEHICLE_ID0);
    
CreateDynamicMapIcon(xyz25COLOR_YELLOW,0,0,0,100.0,0);
    
BenzinPos[BenzinCount][0] = x;
    
BenzinPos[BenzinCount][1] = y;
    
BenzinPos[BenzinCount][2] = z;
    return 
true;

On a mini map, you'll see the map icons bud but nothing will appear before me.

https://prnt.sc/hffyex
Mivco is offline   Reply With Quote
Old 26/11/2017, 03:38 PM   #2
Mivco
Big Clucker
 
Mivco's Avatar
 
Join Date: Mar 2015
Location: Slovakia
Posts: 60
Reputation: 0
Default Re: Pickup, 3D Text and MAP ICON

Help me
Mivco is offline   Reply With Quote
Old 26/11/2017, 03:53 PM   #3
Wayzzar
Big Clucker
 
Wayzzar's Avatar
 
Join Date: Dec 2014
Location: Uruguay
Posts: 58
Reputation: 0
Default Re: Pickup, 3D Text and MAP ICON

you do not need to create forwards for that, you can create them one by one in OnGameModeInit.
Wayzzar is offline   Reply With Quote
Old 26/11/2017, 07:17 PM   #4
Mivco
Big Clucker
 
Mivco's Avatar
 
Join Date: Mar 2015
Location: Slovakia
Posts: 60
Reputation: 0
Default Re: Pickup, 3D Text and MAP ICON

Quote:
Originally Posted by Wayzzar View Post
you do not need to create forwards for that, you can create them one by one in OnGameModeInit.
Why would I create when it's the same
Mivco is offline   Reply With Quote
Old 26/11/2017, 08:37 PM   #5
Mivco
Big Clucker
 
Mivco's Avatar
 
Join Date: Mar 2015
Location: Slovakia
Posts: 60
Reputation: 0
Default Re: Pickup, 3D Text and MAP ICON

Help me guys :/
Mivco is offline   Reply With Quote
Old 26/11/2017, 10:12 PM   #6
Mivco
Big Clucker
 
Mivco's Avatar
 
Join Date: Mar 2015
Location: Slovakia
Posts: 60
Reputation: 0
Default Re: Pickup, 3D Text and MAP ICON

Help me
Mivco 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
How to add pickup icon? BlazeGaming Scripting Help 3 28/12/2014 12:07 PM
Making shop with pickup icon and dialog text, HELP! Subwoofer Scripting Help 7 10/06/2012 03:30 PM
Pickup Icon help JD Help Archive 1 09/12/2010 10:51 PM
there is no pickup icon Medzmara Help Archive 3 24/10/2009 11:07 AM
Place Map Icon On Top Of Pickup ??? Alec24 Help Archive 8 23/03/2009 08:59 PM


All times are GMT. The time now is 08:51 PM.


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