01.06.2012, 15:02
No xDD i want the bus not to drive over the player xD
over the script
OnGameModeInit
OnPlayerSpawn
over the script
Код:
new car_Busbot;
Код:
//Busbot
ConnectNPC("busbot","busbot");
car_Busbot = CreateVehicle(437, -2257.1030,149.2979,35.3796,181.1235,1,7, -1);
Код:
if(IsPlayerNPC(playerid))
{
new botname[MAX_PLAYER_NAME];
GetPlayerName(playerid, botname, sizeof(botname));
if(!strcmp(botname, "busbot", true))
{
Desktop_Check[playerid] = 0;
Desktop_Timer_Started[playerid] = 0;
Desktop_Status[playerid] = 0;
print("[NPC]: Busbot ist gespawnt.");
SetPVarInt(playerid,"Fuehrerschein",1);
SetPlayerSkin(playerid,255);
PutPlayerInVehicle(playerid, car_Busbot, 0);
GetVehicleParamsEx(car_Busbot,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(car_Busbot,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective);
Motor[car_Busbot] = true;
Vehicle[car_Busbot][Engine] = 1;
return 1;
}
}

