Jump to content

Question

Posted

Am un GM facut de mine si nu mere sa pun npc-ul intr'un vehicul.Pur si simplu npc-ul apare dar vehiculul nu e spawnat si npc-ul sta pe loc.

4 answers to this question

Recommended Posts

Posted

new vehiclenpc;

vehiclenpc = AddStaticVehicle(...)

la OnPlayerSpawn

if(IsPlayerNPC(playerid))
	{
		new botname[MAX_PLAYER_NAME];
		GetPlayerName(playerid, botname, sizeof(botname));
		if(!strcmp(botname, "nume rec", true))
		{
  			PlayerInfo[playerid][pCarLic] = 1;
         	PutPlayerInVehicle(playerid, vehiclenpc, 0);
         	SetPlayerSkin(vehiclenpc,91);
		}
}

Posted

tot nu mere...mi-l spanwaza unde am inregistrat ruta cu vehiculul dar sta..:| (vehiculul il spawneaza la o ferma)

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.