[AJUDA] Npcs (taxi boot)
#8

[pawn] public OnGameModeInit()
{
print("carregando taxi......");
ConnectNPC("taxi","taxi");
//--//
print("taxi");
ConnectNPC("taxi","taxi");
MeuPrimeiroNPCVehicle = CreateVehicle(420, 0.0, 0.0, 5.0, 0.0, 3, 3, 5000);
return 1;
}

public OnPlayerSpawn(playerid)
{
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, "taxi", true)) //Checando se o nome do NPC й MeuPrimeiroNPC
{
PutPlayerInVehicle(playerid, taxi, 0); //Colocar o NPC dentro do veнculo que criamos para isso.
SetPlayerSkin(playerid, 295);
}
return 1;
}[pawn/]
Reply


Messages In This Thread
[AJUDA] Npcs (taxi boot) - by EoProzinhO - 25.01.2012, 17:57
Re: [AJUDA] Npcs (taxi boot) - by EoProzinhO - 25.01.2012, 18:02
Re: [AJUDA] Npcs (taxi boot) - by [NRG]Dark - 25.01.2012, 18:02
Re: [AJUDA] Npcs (taxi boot) - by EoProzinhO - 25.01.2012, 18:08
Re: [AJUDA] Npcs (taxi boot) - by [NRG]Dark - 25.01.2012, 18:10
Re: [AJUDA] Npcs (taxi boot) - by [NRG]Dark - 25.01.2012, 18:13
Re: [AJUDA] Npcs (taxi boot) - by EoProzinhO - 25.01.2012, 19:57
Respuesta: [AJUDA] Npcs (taxi boot) - by EoProzinhO - 25.01.2012, 20:49
Respuesta: [AJUDA] Npcs (taxi boot) - by EoProzinhO - 25.01.2012, 20:53

Forum Jump:


Users browsing this thread: 1 Guest(s)