SA-MP Forums Archive
Help | With Attacking Bot - 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: Help | With Attacking Bot (/showthread.php?tid=279304)



Help | With Attacking Bot - itay_h7 - 26.08.2011

https://sampforum.blast.hk/showthread.php?tid=106257

I Cant Understand this !
How I use it ? ??


Re: Help | With Attacking Bot - =WoR=G4M3Ov3r - 26.08.2011

Read the instructions carefully.


Re: Help | With Attacking Bot - itay_h7 - 26.08.2011

Quote:
Originally Posted by G4M3Ov3r
View Post
Read the instructions carefully.
LOL
But I dont understood this so i need help
mybe u can give me a script for example


Re: Help | With Attacking Bot - =WoR=G4M3Ov3r - 26.08.2011

Quote:
Originally Posted by itay_h7
View Post
LOL
But I dont understood this so i need help
Are you trying to attack another server or something ?, because it won't work, unless on yours.


Re: Help | With Attacking Bot - itay_h7 - 26.08.2011

Quote:
Originally Posted by G4M3Ov3r
View Post
Are you trying to attack another server or something ?, because it won't work, unless on yours.
no.... its a npc that can attack players


Re: Help | With Attacking Bot - itay_h7 - 26.08.2011

help ....


Re: Help | With Attacking Bot - Pinguinn - 26.08.2011

pawn Code:
CreateAttackingNPC("npcname", npc-x, npc-y, npc-z, [optional]attack distance, [optional]attack accuracy);
For example, you want to spawn the npc 2 meters above you

pawn Code:
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
CreateAttackingNPC("haider", x, y, z+2);
(As you can see I didn't add attack distance, or accuracy, because those are optional (default distance; 60m, accuarcy; 10 degrees))

If it doesn't work, please return


Re: Help | With Attacking Bot - itay_h7 - 26.08.2011

Quote:
Originally Posted by Pinguinn
View Post
pawn Code:
CreateAttackingNPC("npcname", npc-x, npc-y, npc-z, [optional]attack distance, [optional]attack accuracy);
For example, you want to spawn the npc 2 meters above you

pawn Code:
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
CreateAttackingNPC("haider", x, y, z+2);
(As you can see I didn't add attack distance, or accuracy, because those are optional (default distance; 60m, accuarcy; 10 degrees))

If it doesn't work, please return
i will edit this after i try

**EDIT: dont work. mybe i need to create the bot before......... What i need to do ?