SA-MP Forums Archive
Two question, please help [ + rep ] - 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: Two question, please help [ + rep ] (/showthread.php?tid=596154)



Two question, please help [ + rep ] - UnforgiveNNN - 13.12.2015

Hello. First for all wish you all the best, and have a great chirstmas and new year.


1. How can i do my text on screen while taking drugs or other things small?

Image:

Curently it's more big, and i don't like it.



2. Anybody known where to get the tutorial for make an build enterable?


I want the tutorial with yellow mark, or red circle ( i know they are pickups right? )




Re: Two question, please help [ + rep ] - TuFF12 - 13.12.2015

Question 1 : use this to create it https://sampforum.blast.hk/showthread.php?tid=543002 and on your command use https://sampwiki.blast.hk/wiki/TextDrawSetString
Question 2: ou can use dynamic checkpoint Like this
Код:
 on the top :new cp_YourCP;
public OnGameModeInit() use this 
cp_YourCp = CreateDynamicCP(x,y,z,2, -1,-1,-1,100.0);
and when player enter checkpoint 
public OnPlayerEnterDynamicCP(playerid, checkpointid)
{
   if(checkpointid == cp_YourCP)
   {
   SetPlayerPos( playerid, x,y,z );
   SetPlayerInterior(playerid, Interior id);
   }
   return 1;
}
http://weedarr.wikidot.com/interior use this to get interiors id

Sorry For MY bAd ENGLISH


Re: Two question, please help [ + rep ] - Denying - 13.12.2015

Question 1: You do not need to use a textdraw as mentioned above. You could simply use GameTextForPlayer. Here's a tutorial: https://sampforum.blast.hk/showthread.php?tid=191403


Re: Two question, please help [ + rep ] - TuFF12 - 13.12.2015

well if you read his question He says :

1. How can i do my text on screen while taking drugs or other things small?
Curently it's more big, and i don't like it.


Re: Two question, please help [ + rep ] - Denying - 13.12.2015

Quote:
Originally Posted by TuFF12
Посмотреть сообщение
well if you read his question He says :

1. How can i do my text on screen while taking drugs or other things small?
Curently it's more big, and i don't like it.
That's true, I just told him he -doesn't HAVE- to use textdraws. There are different fonts for GameText and he might find one which is suitable. I simply gave the guy another option.

EDIT:

As an answer to your second question, if you wish to create entrances like the default ones, it is not possible. However, you can create pick-ups by using the function CreatePickup (examples and explanation is here: https://sampwiki.blast.hk/wiki/CreatePickup) and then you get to choose a few ways of doing this, either the player triggers the "door" by coming over the pick-up, which means, as soon as the player touches the pick up, they will be teleported inside the interior. This can be achieved by using the OnPlayerPickUpPickup callback, which gets called every time a player touches a pickup-able pick up (some pickup types don't call this callback). Or you could simply trigger it by the press of a player's button, perhaps a command?

Anyway, if you want to make doors and whatnot, you should look at a guide because a few measly words will not make you understand the idea of it.

This guide should do the trick! https://sampforum.blast.hk/showthread.php?tid=330001

Good luck and if you have any other questions, you are more than welcome to ask.