SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 02/09/2009, 12:36 PM   #11
Justsmile
Huge Clucker
 
Join Date: Dec 2008
Posts: 211
Reputation: 0
Default Re: Tutorial -> Creating a new NPC

If someone cheats armor, or sth. like that, he will not be kicked, just a message to admins. Maybe, cause of /register and /login? I use a modified GodFather Version, based on the original. Everything else works fine.
Justsmile is offline   Reply With Quote
Old 02/09/2009, 12:39 PM   #12
kc
High-roller
 
kc's Avatar
 
Join Date: Aug 2007
Posts: 1,153
Reputation: 115
Default Re: Tutorial -> Creating a new NPC

Quote:
Originally Posted by Bl4ckDice
If someone cheats armor, or sth. like that, he will not be kicked, just a message to admins. Maybe, cause of /register and /login? I use a modified GodFather Version, based on the original. Everything else works fine.
If you must login to spawn, then yes that would be the problem.
kc is offline   Reply With Quote
Old 02/09/2009, 12:49 PM   #13
Justsmile
Huge Clucker
 
Join Date: Dec 2008
Posts: 211
Reputation: 0
Default Re: Tutorial -> Creating a new NPC

No, gf problems, i fixxed it, Register ist not important^^
Justsmile is offline   Reply With Quote
Old 02/09/2009, 01:11 PM   #14
Justsmile
Huge Clucker
 
Join Date: Dec 2008
Posts: 211
Reputation: 0
Default Re: Tutorial -> Creating a new NPC

Why is "SendCommand" for NPC undefined?
Justsmile is offline   Reply With Quote
Old 02/09/2009, 01:13 PM   #15
Y_Less
Beta Tester
 
Y_Less's Avatar
 
Join Date: Jun 2008
Location: 629 - git.io/Y
Posts: 14,984
Reputation: 3150
Default Re: Tutorial -> Creating a new NPC

Quote:
Originally Posted by Bl4ckDice
Why is "SendCommand" for NPC undefined?
Did you do it in an NPC script?
Y_Less is offline   Reply With Quote
Old 02/09/2009, 01:23 PM   #16
Justsmile
Huge Clucker
 
Join Date: Dec 2008
Posts: 211
Reputation: 0
Default Re: Tutorial -> Creating a new NPC

I need it in my GM.^^
Justsmile is offline   Reply With Quote
Old 02/09/2009, 01:24 PM   #17
dugi
Beta Tester
 
Join Date: Jun 2007
Location: Poland
Posts: 4,866
Reputation: 800
Default Re: Tutorial -> Creating a new NPC

It can not be used outside of the NPC scripts so you can not use it in your gamemode or filterscript.
dugi is offline   Reply With Quote
Old 02/09/2009, 01:26 PM   #18
kc
High-roller
 
kc's Avatar
 
Join Date: Aug 2007
Posts: 1,153
Reputation: 115
Default Re: Tutorial -> Creating a new NPC

I _think_ that you can call OnPlayerCommandText(npc_id_here, "/command"); in your script to make an NPC perform a command.
kc is offline   Reply With Quote
Old 02/09/2009, 01:28 PM   #19
Justsmile
Huge Clucker
 
Join Date: Dec 2008
Posts: 211
Reputation: 0
Default Re: Tutorial -> Creating a new NPC

HOw get i the Id of the Bot?
Justsmile is offline   Reply With Quote
Old 02/09/2009, 01:28 PM   #20
Redirect Left
High-roller
 
Redirect Left's Avatar
 
Join Date: Mar 2007
Location: Yorkshire, England
Posts: 1,302
Reputation: 362
Default Re: Tutorial -> Creating a new NPC

Quote:
Originally Posted by Bl4ckDice
HOw get i the Id of the Bot?
Bots always have the lowest IDs on the server, try looping around playerids and use IsPlayerNPC, or get the name and see if it matches the bots.
Redirect Left 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
need help with NPC creating the_zande Help Archive 2 09/07/2010 11:44 PM
help creating a new gm Lookin Help Archive 8 16/06/2010 03:23 PM
I need a tut on creating kujox32 Help Archive 0 05/05/2010 02:16 AM
Creating Box VirSpectorX Help Archive 5 15/04/2010 02:47 PM
Help creating my own... x.X.LEGENDARIO.X.x Everything and Nothing 20 06/02/2010 03:40 PM


All times are GMT. The time now is 04:42 PM.


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