Bot fags just standing around at teh spawn -
Striker_Moe - 18.10.2009
Код:
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..
Re: Bot fags just standing around at teh spawn -
Beaver07 - 18.10.2009
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;
}
Re: Bot fags just standing around at teh spawn -
Striker_Moe - 18.10.2009
Did it like youґve done, but theyґre still lazy standing around..
Re: Bot fags just standing around at teh spawn -
Beaver07 - 18.10.2009
are all the npc_modes correct so it knows it should be driving a vehicle etc..
Re: Bot fags just standing around at teh spawn -
Striker_Moe - 18.10.2009
*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.
Re: Bot fags just standing around at teh spawn -
Striker_Moe - 18.10.2009
Okay, to test Iґve removed the if(IsPlayerNPC) and now one bot works..
Re: Bot fags just standing around at teh spawn -
Beaver07 - 18.10.2009
try then removing the else if and just have if