Text for Pickup
#1

http://imgur.com/8ffl6SX

How I could do this thing when you walk into a pickup?
Reply
#2

You need to create a textdraw that displays when the playe walks into the checkpoint.

https://sampwiki.blast.hk/wiki/Textdraw
Reply
#3

Fist create a pickup in public OnGameModeInit()
PHP код:
 pickupexample CreatePickup(12391coordonate xyz); 
PHP код:
public OnPlayerPickUpPickup(playeridpickupid)
{
     if(
pickupid == pickupexample)
    {
         
SendClientMessage(playerid,-1"{FFFFFF} Type {F00000}/paint {FFFFFF} to enter the paitball arena");
         return 
1;
   }

Reply
#4

Quote:
Originally Posted by r0bi
Посмотреть сообщение
Fist create a pickup in public OnGameModeInit()
PHP код:
 pickupexample CreatePickup(12391coordonate xyz); 
PHP код:
public OnPlayerPickUpPickup(playeridpickupid)
{
     if(
pickupid == pickupexample)
    {
         
SendClientMessage(playerid,-1"{FFFFFF} Type {F00000}/paint {FFFFFF} to enter the paitball arena");
         return 
1;
   }

Thanks, but not what I'm looking for
Reply
#5

It's exactly the thing that you are looking for, you just need a textdraw and you do what r0bi did.
Reply
#6

Код:
 pickupexample = CreatePickup(1239, 1, coordonate x, y, z);
First create a textdraw use this http://bsndesign.webs.com/tde.htm
now instead of putting the textdraw in OnPlayerSpawn put it here on OnPlayerPickUpPickup
Код:
public OnPlayerPickUpPickup(playerid, pickupid) 
{ 
     if(pickupid == pickupexample) 
    { 
          TextDrawShowForPlayer(playerid, textid);
         return 1; 
   }
Reply
#7

Do not forget to use PlayerTextDraws because you might need to use PlayerTextDrawSetString.
Why not use player Tds instead of global?
Because sometimes more than one player would view the textdraw and they might get the same string.. For example one is near pizza stack entrance and one near ammunition once the pizza stack guy steps near the pickup and gets pizza stack textdraw and after a second guy near ammunition steps near ammunition and gets his string set to ammunition as a result the guy near pizza pickup get his textdraw string set to ammunition..

So you need to use PlayerTextDraws thing..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)