Help for Game Bot and Low Skin
#1

I have two questions.
First question:
How to make a GAME BOT like this here: http://gta-news.ucoz.org/_fr/1/s4935143.jpg
I made a Ammunation Shop and I need to add a GAME BOT like the player bot in ammunation.

Second Question:
How to make the speed of the skins to be low like in lvdm.pwn ?

Sorry for my bad English.
Reply
#2

I don't know how but i can syay our english is fine.
Reply
#3

For the NPC (Non-Player Character) which is GAMEBOT for you, here is an tutorial.
https://sampforum.blast.hk/showthread.php?tid=95034

And about your second question, I don't get what you want exactly.
Could you give an example please, so we all can help you out faster?
Reply
#4

Thanks for Rolly and ******
But I have a question for that NPC.
I allready read the tutorial and I tried to make a NPC BOT like this in a AMMUNATION, but when I join the BOT isn't there.

I record a file named ammo1, then I put the file in npmodes/recordings
Then I make a new pawno file named ammo1
Here is the codes:
Код:
#define RECORDING "ammo1" //This is the filename of your recording without the extension.
#define RECORDING_TYPE 2 //1 for in vehicle and 2 for on foot.

#include <a_npc>
main(){}
public OnRecordingPlaybackEnd() StartRecordingPlayback(RECORDING_TYPE, RECORDING);

#if RECORDING_TYPE == 1
  public OnNPCEnterVehicle(vehicleid, seatid) StartRecordingPlayback(RECORDING_TYPE, RECORDING);
  public OnNPCExitVehicle() StopRecordingPlayback();
#else
  public OnNPCSpawn() StartRecordingPlayback(RECORDING_TYPE, RECORDING);
#endif
And Finally I add this codes in my FS:

Код:
new test;


public OnFilterScriptInit()
{
        ConnectNPC("Dave","ammo1");
	return 1;
}


public OnPlayerSpawn(playerid)
{
	if(IsPlayerNPC(playerid))
	{
		new NPCName[MAX_PLAYER_NAME];
		GetPlayerName(playerid,NPCName,sizeof(NPCName));
		if(!strcmp(NPCName,"Dave",true))
	    {
			SetPlayerInterior(playerid,7);
			SetPlayerVirtualWorld(playerid,20);
			SetPlayerColor(playerid,COLOR_RED);
			SetPlayerSkin(playerid,209);
			SetPlayerPos(playerid,308.2154,-143.0907,999.6016);
			SetPlayerFacingAngle(playerid,359.6698);
			test = Create3DTextLabel("Test",COLOR_RED,0.0,0.0,0.0,10.0,20,1);
			Attach3DTextLabelToPlayer(test,playerid,0.0,0.0,0.15);
		}
		return 1;
	}
	return 1;
}
So what to do ?
Reply
#5

Quote:
Originally Posted by BGMike
Посмотреть сообщение
Thanks for Rolly and ******

My name is not Rolly >_<, Whats so hard about spelling Names Right :X?

The tutorial is very detailed and very helpfull, I also had one problem with Creating a NPC. But I managed to fix it by myself by reading the tutorial once more, and go from step to step. And if you didn't understand one of the steps, just take your time re-read it and check your codes. And after a while you will understand everything and the NPC will work.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)