Bot fags just standing around at teh spawn
#1

Код:
	if(!IsPlayerNPC(playerid)) return 0;

	new playername[64];
	GetPlayerName(playerid,playername,64);

 	if(!strcmp(playername,"Mike",true)) {
    PutPlayerInVehicle(playerid, Hunter1, 0);
	}
	else if(!strcmp(playername,"Tom",true)) {
		PutPlayerInVehicle(playerid, Hunter2, 0);
	}
	else if(!strcmp(playername,"Andre",true)) {
	  PutPlayerInVehicle(playerid, Hydra1, 0);
	}
 	else if(!strcmp(playername,"Johnson",true)) {
    PutPlayerInVehicle(playerid, Hydra2, 0);
	}
	else if(!strcmp(playername,"Anderson",true)) {
		PutPlayerInVehicle(playerid, Rhino1, 0);
	}
	else if(!strcmp(playername,"Mathew",true)) {
	  PutPlayerInVehicle(playerid, Rhino2, 0);
	}
	else if(!strcmp(playername,"Davidson",true)) {
		PutPlayerInVehicle(playerid, Seasparrow, 0);
	}
	else if(!strcmp(playername,"Moralles",true)) {
	  PutPlayerInVehicle(playerid, Truck, 0);
	}
	return 1;
Whats the problem..
Reply
#2

wat errors you get? if that's on player spawn use it like this

Код:
if(IsPlayerNPC(playerid))
{
	new playername[64];
	GetPlayerName(playerid,playername,64);

 	if(!strcmp(playername,"Mike",true))
	{
    PutPlayerInVehicle(playerid, Hunter1, 0);
	}
	else if(!strcmp(playername,"Tom",true))
	{
		PutPlayerInVehicle(playerid, Hunter2, 0);
	}
	else if(!strcmp(playername,"Andre",true))
	{
	  PutPlayerInVehicle(playerid, Hydra1, 0);
	}
 	else if(!strcmp(playername,"Johnson",true))
	 {
    PutPlayerInVehicle(playerid, Hydra2, 0);
	}
	else if(!strcmp(playername,"Anderson",true))
	{
		PutPlayerInVehicle(playerid, Rhino1, 0);
	}
	else if(!strcmp(playername,"Mathew",true))
	{
	  PutPlayerInVehicle(playerid, Rhino2, 0);
	}
	else if(!strcmp(playername,"Davidson",true))
	 {
		PutPlayerInVehicle(playerid, Seasparrow, 0);
	}
	else if(!strcmp(playername,"Moralles",true))
	{
	  PutPlayerInVehicle(playerid, Truck, 0);
	}
	return 1;
}
Reply
#3

Did it like youґve done, but theyґre still lazy standing around..
Reply
#4

are all the npc_modes correct so it knows it should be driving a vehicle etc..
Reply
#5

*Looks up*

The .recґs are inside the npcmodes/recordings, the .amxґs are inside the npcmodes folder, the .amxґs look like

Код:
#define RECORDING "hunter1" //This is the filename of your recording without the extension.
#define RECORDING_TYPE 1 //1 for in vehicle and 2 for on foot.

#include <a_npc>
main(){}
public OnRecordingPlaybackEnd() StartRecordingPlayback(RECORDING_TYPE, RECORDING);
public OnNPCEnterVehicle(vehicleid, seatid) StartRecordingPlayback(RECORDING_TYPE, RECORDING);
public OnNPCExitVehicle() StopRecordingPlayback();
Yeah - should be good.
Reply
#6

Okay, to test Iґve removed the if(IsPlayerNPC) and now one bot works..
Reply
#7

try then removing the else if and just have if
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)