public OnPlayerRequestClass(playerid, classid) { if(!IsPlayerNPC(playerid)) return 0; // We only deal with NPC players in this script SetSpawnInfo(playerid,69,255,1462.0745,2630.8787,10.8203,0.0,-1,-1,-1,-1,-1,-1);/change this }
Originally Posted by [LSD
Rac3r ]
Possible problem could be your bot isn't being spawned. Try adding this into your mode. Код:
public OnPlayerRequestClass(playerid, classid) { if(!IsPlayerNPC(playerid)) return 0; // We only deal with NPC players in this script SetSpawnInfo(playerid,69,255,1462.0745,2630.8787,10.8203,0.0,-1,-1,-1,-1,-1,-1);/change this } Have you created a seperate npc node file for the second taxi? |
public OnPlayerSpawn(playerid) { if(IsPlayerNPC(playerid)) //kijkt of de Speler Wel een NPC is { new npcname[MAX_PLAYER_NAME]; GetPlayerName(playerid, npcname, sizeof(npcname)); //naam van npc if(!strcmp(npcname, "[Taxi]James", true)) //ff checken of de naam echt [Taxi]James is { PutPlayerInVehicle(playerid, TaxiVec, 0); //Zet de NPC in De Vehicle ;). } return 1; } new npcname[MAX_PLAYER_NAME]; GetPlayerName(playerid, npcname, sizeof(npcname)); //naam van npc if(!strcmp(npcname, "[Taxi]Dave", true)) { PutPlayerInVehicle(playerid, DaveVec, 0); return 1; } return 1; }
public OnPlayerSpawn(playerid) { if(IsPlayerNPC(playerid)) //kijkt of de Speler Wel een NPC is { new npcname[MAX_PLAYER_NAME]; GetPlayerName(playerid, npcname, sizeof(npcname)); //naam van npc if(!strcmp(npcname, "[Taxi]James", true)) //ff checken of de naam echt [Taxi]James is { PutPlayerInVehicle(playerid, TaxiVec, 0); //Zet de NPC in De Vehicle ;). return 1; } else if(!strcmp(npcname, "[Taxi]Dave", true)) { PutPlayerInVehicle(playerid, DaveVec, 0); return 1; } } return 1; }