SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 04/08/2020, 06:20 AM   #1
idegod
Big Clucker
 
Join Date: Mar 2017
Posts: 75
Reputation: 0
Default Actors with fake weapons

Actors in my server are used to stores robbery system, like in a lot of others servers...
I want to do something cool, make a chance to actors react from a robbery
How to do this?
Would be possible to create an object in actor hands and make he do an animation?
If it is possible, is anyone could help me with a base for this?
Or there is any other way to do this cool feature? I bet other people would use too
idegod is offline   Reply With Quote
Old 04/08/2020, 07:43 AM   #2
Fairuz
Huge Clucker
 
Fairuz's Avatar
 
Join Date: Sep 2015
Location: Indonesia
Posts: 465
Reputation: 87
Default Re: Actors with fake weapons

That wouldn't look really good.. Use FCNPC instead of normal actor
__________________
Los Santos based Cops and Robbers with many features.
178.128.82.211:7777
Fairuz is offline   Reply With Quote
Old 12/08/2020, 11:43 PM   #3
idegod
Big Clucker
 
Join Date: Mar 2017
Posts: 75
Reputation: 0
Default Re: Actors with fake weapons

i would like to use actor
idegod is offline   Reply With Quote
Old 13/08/2020, 11:21 AM   #4
jasperschellekens
High-roller
 
jasperschellekens's Avatar
 
Join Date: Dec 2016
Location: Holland
Posts: 1,165
Reputation: 165
Default Re: Actors with fake weapons

You can make actors react to a robbery but it's gonna be a lot more of work compared to doing it with FNPC.
Just use FCNPC. Just because you don't want to learn it or know how to use it means that you should use actors.

You are trying to make chicken soup without chicken over here lol.

Why do all the trouble for actors while you can give an npc a weapon, make it aim and even shoot etc? And that with 2 lines of code..
Robbable actors are fine, if you want to make them responds, use NPC's
__________________
Undead Wasteland Roleplay | Visit website
The year is 1996. San Andreas is a wasteland ruled by the undead. the once so glorius landscape of San Andreas, is now a shattered decayed place that is only a vague memory of the world as we used to know it.
jasperschellekens is offline   Reply With Quote
Old 15/08/2020, 07:24 AM   #5
QwertyIsProgramming
Little Clucker
 
QwertyIsProgramming's Avatar
 
Join Date: Aug 2020
Location: Tunisia.
Posts: 33
Reputation: 1
Flowers Re: Actors with fake weapons

You can't get a straight respond from actors due to their simple behavior, use NPCs from FCNPC. Set a NPC, give him a weapon and when the player robs the story then the NPC will have a chance to gun down the player using the weapon you gave him. Actors are not made for such jobs.

Last edited by QwertyIsProgramming; 16/08/2020 at 06:35 PM.
QwertyIsProgramming is offline   Reply With Quote
Old 18/08/2020, 10:53 AM   #6
idegod
Big Clucker
 
Join Date: Mar 2017
Posts: 75
Reputation: 0
Default Re: Actors with fake weapons

i can't use any npc system for many reasons...

reason 1:
i have more then 2000 actors on map

NPCs uses players slots

---

It isn't possible to make actor an animation and create the object weapon like on actor hands?
idegod is offline   Reply With Quote
Old 18/08/2020, 11:16 AM   #7
QwertyIsProgramming
Little Clucker
 
QwertyIsProgramming's Avatar
 
Join Date: Aug 2020
Location: Tunisia.
Posts: 33
Reputation: 1
Flowers Re: Actors with fake weapons

Nah.
QwertyIsProgramming is offline   Reply With Quote
Old 18/08/2020, 12:29 PM   #8
jasperschellekens
High-roller
 
jasperschellekens's Avatar
 
Join Date: Dec 2016
Location: Holland
Posts: 1,165
Reputation: 165
Default Re: Actors with fake weapons

2000? You are doing something wrong. Why the heck would a server need 2k npcs that can be robbed?

Quote:
Originally Posted by idegod View Post
NPCs uses players slots
You got two options
- get more player slots
- dont add a shit ton of robbable actors. WHY THE HECK WOULD U ADD 2k ACTORS Even 10 npcs would do.
__________________
Undead Wasteland Roleplay | Visit website
The year is 1996. San Andreas is a wasteland ruled by the undead. the once so glorius landscape of San Andreas, is now a shattered decayed place that is only a vague memory of the world as we used to know it.
jasperschellekens is offline   Reply With Quote
Old 14/09/2020, 01:40 PM   #9
idegod
Big Clucker
 
Join Date: Mar 2017
Posts: 75
Reputation: 0
Default Re: Actors with fake weapons

Quote:
Originally Posted by jasperschellekens View Post
2000? You are doing something wrong. Why the heck would a server need 2k npcs that can be robbed?



You got two options
- get more player slots
- dont add a shit ton of robbable actors. WHY THE HECK WOULD U ADD 2k ACTORS Even 10 npcs would do.
Don't get me wrong, u don't even know my context
I have a lot of actors for so many reasons (street, store...) and i will make more, its not the case

I just need to set weapon to some types of actores hands, with a extra function (while samp don't have this native)
I tried with CreateObject but i couldn't put right on hands, thats why i create this topic, for someone experient helps me
The simples answers i already know
idegod is offline   Reply With Quote
Old 14/09/2020, 01:43 PM   #10
jasperschellekens
High-roller
 
jasperschellekens's Avatar
 
Join Date: Dec 2016
Location: Holland
Posts: 1,165
Reputation: 165
Default Re: Actors with fake weapons

Quote:
Originally Posted by idegod View Post
Don't get me wrong, u don't even know my context
I have a lot of actors for so many reasons (street, store...) and i will make more, its not the case

I just need to set weapon to some types of actores hands, with a extra function (while samp don't have this native)
I tried with CreateObject but i couldn't put right on hands, thats why i create this topic, for someone experient helps me
The simples answers i already know
I still dont understand why you would do this. Its inefficient and probably buggy af too. Just use npcs

You are trying to eat soup without a spoon here lol
__________________
Undead Wasteland Roleplay | Visit website
The year is 1996. San Andreas is a wasteland ruled by the undead. the once so glorius landscape of San Andreas, is now a shattered decayed place that is only a vague memory of the world as we used to know it.
jasperschellekens 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
Fake Online / Fake Bots samp megamozgsu General 7 04/11/2018 08:50 PM
About actors AlexMSK Scripting Help 6 07/11/2017 06:16 PM
[Ajuda] actors fdsda PortuguÍs/Portuguese 6 12/11/2015 08:34 PM
actors Karolukas123 Scripting Help 2 28/10/2015 10:11 PM


All times are GMT. The time now is 02:47 PM.


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