[Help] Dialog and Bot
#1

Hey i have some few problem here,



Problem on number 1: I want to do so when i click on Esc button it doesnt disapare because from now if i click on the Esc button it disapare.
Problem on number 2: On this one i want it to disapare and never come back, and as i will get the answer go and search there is answer, the answer is Yes maby there is but i have search for a long time now and i haven't find anything that help me.

Help me please, I'm willing to pay!


NPC Problem.

I created an NPC for a whyle ago and i am stuck now i don't get the NPC to work it does only stand there and do nothing.
My NPC should jump in a bus and drive around in the city but when i created it the bus was there and the bot wasn't then i changed some things with the codes and the bot was there but not the bus and here i am no bus only the bot.



This one is under public OnPlayerSpawn(playerid)
Код:
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, "Iana_Eemeli", true)) //Checking if the NPC's name is Iana_Eemeli
    {
			SetPlayerSkin(playerid, 253);
      PutPlayerInVehicle(playerid, 59, 0); //Putting the NPC into the vehicle we created for it.
    }
    return 1;
  }
This one is under public OnPlayerRequestClass(playerid, classid) but there is some othere things to before this code but it works as i can see.
Код:
if(IsPlayerNPC(playerid)) return 1;
This one is under public OnGameModeInit()
Код:
ConnectNPC("Iana_Eemeli","buss");
Here is the bus code.
Код:
bus =	AddStaticVehicleEx(437, 0.0, 0.0, 5.0, 0.0, 1, 1, 5000); // Bus 59
Help me please, I'm willing to pay!
Reply


Messages In This Thread
[Help] Dialog and Bot - by tony_fitto - 05.11.2009, 14:24
Re: [Help] Dialog and Bot - by smoker08 - 05.11.2009, 14:46
Re: [Help] Dialog and Bot - by Whitetiger - 05.11.2009, 14:53
Re: [Help] Dialog and Bot - by tony_fitto - 05.11.2009, 15:34
Re: [Help] Dialog and Bot - by tony_fitto - 05.11.2009, 15:35

Forum Jump:


Users browsing this thread: 1 Guest(s)