Need some suggestions
#1

Hello, so i just want to get a couple suggestions for a couple of things.

1. So i am using FCNPC plugin to create bots and i like the idea of having bots. But i also don't want like 30-40 bots connected at once. Isn't that too much? I mean i want each pizza place to have a bot, there are some jobs that have bots, etc. How could i limit the number of bots at once created? Or what would be the smart way of doing things with bots. I am thinking maybe, for interiors only create bots when the player enters the interior? And to know when the player is in the interior? But what about bots outside? Should i know when players near by with a timer and only then create them? Just basically what is the smart and right way of doing this.

2. I want to create Los Santos, filled with gang zones for example. First off all, what is the best way to go about creating gang zones? Second, how can i know when the player is for example in the city of Los Santos? Or is there a way to get players when they are in a gang zone? Because what i want to do, is disable teleports and stuff like that in Los Santos. I know how to know when a player is at a center point, but what would be a smart way to deal with such a big chunk of area? Maybe gangzones can help? Again, i just need some input about smart way of doing this.

3. Textdraws, i have a lot of issues with those. I am not myself very creative and i also had an editor for textdraws that not all of it worked and it was ingame.. So what is the best way to create nice textdraws and the easiest way? What do you guys use?


Again, i just want some friendly input from other scripters and some shared information on what is the right or good way to do some of these things. Thank you.
Reply
#2

Eong section, this is scripting help and not suggestion section
Reply
#3

1. You can use function CreateActor instead of that plugin.

2. If you want to check if player is in gang zone, use function IsPlayerInGangZone - there are a lot of information about it in internet.
https://sampforum.blast.hk/showthread.php?tid=87588

3. I suggest using iPLEOMAX's TextDraw Editor (https://sampforum.blast.hk/showthread.php?tid=376758). You can simply create textdraws, then export them, create in game and when you want them to show, just use functions, such as TextDrawShowForPlayer or PlayerTextDrawShow. If you have any troubles about creating texdraws, just create a new topic and be sure, that somebody will help you.
Reply
#4

Quote:

Eong section, this is scripting help and not suggestion section

Isn't this scripting help, since i am trying to figure out the best way??

Quote:

1. You can use function CreateActor instead of that plugin.

2. If you want to check if player is in gang zone, use function IsPlayerInGangZone - there are a lot of information about it in internet.
https://sampforum.blast.hk/showthread.php?tid=87588

3. I suggest using iPLEOMAX's TextDraw Editor (https://sampforum.blast.hk/showthread.php?tid=376758). You can simply create textdraws, then export them, create in game and when you want them to show, just use functions, such as TextDrawShowForPlayer or PlayerTextDrawShow. If you have any troubles about creating texdraws, just create a new topic and be sure, that somebody will help you.

1. I need the NPCs to be able to move, like in singleplayer when you for example go to pizza place to order pizza, the bot hands you the pizza. As i recall, actors cannot do animations or have objects attached.

2. Thank you, i will do so. I also found IsPlayerInArea

3. I will try it out!

Thanks!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)