Posts: 19
Threads: 4
Joined: Jul 2009
Reputation:
0
08.09.2010, 13:47
(
Последний раз редактировалось ofir060; 24.02.2013 в 10:23.
Причина: Retarted english long ago :SSSS
)
Hey all.
I typed this:
SendCommand(playerid, "/ooc ada");
on the public onplayerspawn, In the if of the NPC.
And when i tested it, it just doesnt work ...
Posts: 844
Threads: 32
Joined: Apr 2009
Reputation:
0
hmm NPC...... why is it then SendCommand(playerid, instead of SendCommand(npc, (if ur npc named bob then u should type bob there)
Posts: 4,878
Threads: 85
Joined: Jun 2007
Reputation:
0
You have to use SendCommand and the other NPC commands in the NPC script, not in the gamemode script. Maybe this is the problem.
Posts: 4,878
Threads: 85
Joined: Jun 2007
Reputation:
0
As I said then, you have to use it from your NPC script if possible.
Instead of SendCommand you could just call the command directly if nothing else works. If you use zcmd or something like this, you can just call the command function. Else copy your command code to a function that you call in OnPlayerCommandText and instead of your SendCommand.