[Ajuda] Problema NPC
#6

Quote:
Originally Posted by GuikBretas
Посмотреть сообщение
pawn Код:
//Topo
new TrempNPC;
new OnibuspNPC;
new OnibuspNPC2;

//OnGameModeInit
TrempNPC = AddStaticVehicleEx(538,1724.40002441,-1954.19995117,15.00000000,89.99987793,-1,-1,15); //Streak
OnibuspNPC = AddStaticVehicle(437,2517.2258,-2114.2793,13.6963,359.3330,2,2); // Onibus Estacao
OnibuspNPC2 = AddStaticVehicle(437,2511.2573,-2114.2097,13.6962,359.3330,2,2); // Onibus Estacao

ConnectNPC("MAQ_Michael","TremNPCbretas");
ConnectNPC("EMO_Yuri","YuriNPCbretas");
ConnectNPC("EMO_Medeiros","MedeirosNPCbretas");

//OnPlayerSpawn
if(IsPlayerNPC(playerid)) //Verifica se o jogador й um NPC.
    {
    new npcname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, npcname, sizeof(npcname)); //Obtendo o nome do(s) NPC(s).
    if(!strcmp(npcname, "MAQ_Michael", true)) //Checando se o nome do NPC й MeuPrimeiroNPC
    {
        PutPlayerInVehicle(playerid, TrempNPC, 0); //Colocar o NPC dentro do veнculo que criamos para isso.
        return 1;
    }
    if(!strcmp(npcname, "EMO_Yuri", true)) //Checando se o nome do NPC й MeuPrimeiroNPC
    {
        PutPlayerInVehicle(playerid, OnibuspNPC, 0); //Colocar o NPC dentro do veнculo que criamos para isso.
        return 1;
    }
    if(!strcmp(npcname, "EMO_Medeiros", true)) //Checando se o nome do NPC й MeuPrimeiroNPC
    {
        PutPlayerInVehicle(playerid, OnibuspNPC2, 0); //Colocar o NPC dentro do veнculo que criamos para isso.
        return 1;
    }
    return 1;
    }

//OnPlayerStateChange
if(IsPlayerNPC(playerid)) return 1;

//OnPlayerRequestClass
if(IsPlayerNPC(playerid)) return 1;

//
Esse й o cod que ta dando problema ou o cod certo arrumado - pois eu vou copiar isso!
Reply


Messages In This Thread
[Ajuda] Problema NPC - by GuikBretas - 20.05.2012, 00:25
Re: [Ajuda] Problema NPC - by [JD]BlackFire - 20.05.2012, 00:35
Re: [Ajuda] Problema NPC - by ViictorDaay- - 20.05.2012, 00:42
Re: [Ajuda] Problema NPC - by Welton_Ranger - 20.05.2012, 02:08
Re: [Ajuda] Problema NPC - by GuikBretas - 20.05.2012, 02:08
Re: [Ajuda] Problema NPC - by Welton_Ranger - 20.05.2012, 02:15
Re: [Ajuda] Problema NPC - by GuikBretas - 20.05.2012, 02:27
Re: [Ajuda] Problema NPC - by Welton_Ranger - 20.05.2012, 02:35
Re: [Ajuda] Problema NPC - by GuikBretas - 20.05.2012, 02:49
Re: [Ajuda] Problema NPC - by Welton_Ranger - 20.05.2012, 02:51

Forum Jump:


Users browsing this thread: 3 Guest(s)