05.09.2009, 08:53
I edited now a FS from the pack or somewhere.
Now it still don't work, the Bot don't spawn... only after /rcon gmx but then he do nothing just stay arround... omg im tired of scripting :/
pawn Code:
#include <a_samp>
new hydra;
public OnGameModeInit()
{
ConnectNPC("Driver","hydrapilotA");
hydra = AddStaticVehicle(520,2044.8854,1473.2106,10.4494,181.3339,6,1); // Taxi
return 1;
}
public OnGameModeExit()
{
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
return 1;
}
public OnPlayerRequestSpawn(playerid)
{
return 1;
}
public OnPlayerConnect(playerid)
{
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
return 1;
}
public OnPlayerSpawn(playerid)
{
if(IsPlayerNPC(playerid)) //Checks if the player is an NPC.
{
new npcname[MAX_PLAYER_NAME];
GetPlayerName(playerid, npcname, sizeof(npcname));
if(!strcmp(npcname, "Driver", true))
{
PutPlayerInVehicle(playerid, hydra, 0);
}
}
return 1;
}