I've got a problem with bots please help!!! :(
#3

pawn Код:
if(IsPlayerNPC(playerid)) //Checks if the player that just spawned is an NPC.
  {
    new npcname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, npcname, sizeof(npcname)); //Getting the NPC's name.
    if(!strcmp(npcname, "SanFierroBus1", true)) //Checking if the NPC's name is MyFirstNPC
    {
      PutPlayerInVehicle(playerid, MyFirstNPCVehicle, 0); //Putting the NPC into the vehicle we created for it.
    }
   if(!strcmp(npcname, "SanFierroBus2", true))
  {
    PutPlayerInVehicle(playerid, MySecondNPCVehicle, 0);
    return 1;
  }
This should do it
Reply


Messages In This Thread
I've got a problem with bots please help!!! :( - by stieben - 19.01.2010, 16:53
Re: I've got a problem with bots please help!!! :( - by GTAguillaume - 19.01.2010, 16:56
Re: I've got a problem with bots please help!!! :( - by actiwe - 19.01.2010, 16:57
Re: I've got a problem with bots please help!!! :( - by stieben - 19.01.2010, 17:01

Forum Jump:


Users browsing this thread: 1 Guest(s)