Two doubt about SA: MP 0.3 scripting -
TheNooB - 07.09.2009
1 Doubt - Well, I created a BOT NPC with the plane Nevada (id: 553), did everything right, it connects, only that instead of the plane appears a car, how can I fix this?
2 Doubt - I was seeing in
PutPlayerInVehicle(playerid,vehicleid,seatid), the vehicle id is not the same as the
AddStaticVehicle, someone could pass me the ID of the vehicles
PutPlayerInVehicle(playerid,vehicleid,seatid)?
Re: Two doubt about SA: MP 0.3 scripting -
mini_tomo_2 - 07.09.2009
Do you mean you are using the model ID to put a player in a vehicle?
Re: Two doubt about SA: MP 0.3 scripting -
Zezombia - 07.09.2009
I don't beleave AddStaticVehicle returns a value. Use CreateVehicle instead.
pawn Код:
new veh = AddStaticVehicle();
X
pawn Код:
new veh = CreateVehicle();
✔
Re: Two doubt about SA: MP 0.3 scripting -
TheNooB - 07.09.2009
Quote:
Originally Posted by [Tomo
NomNom ]
Do you mean you are using the model ID to put a player in a vehicle?
|
Look at my script filterscripts\gl_npcs:
Код:
else if(!strcmp(playername,"NevadaSF",true)) {
SetSpawnInfo(playerid,69,61,0.0,0.0,0.0,0.0,-1,-1,-1,-1,-1,-1);
Код:
else if(!strcmp(playername,"NevadaSF", true)) {
PutPlayerInVehicle(playerid,553,0);
SetPlayerColor(playerid,0xFFFFFFFF);
In
PutPlayerInVehicle(playerid,vehicleid,seatid), I'm using the ID of the vehicle (which is 533), but instead of appearing a Nevada appears a car
I'm using the Game Mode Grand Larceny
Re: Two doubt about SA: MP 0.3 scripting -
Joske_Vermeulen - 07.09.2009
Quote:
Originally Posted by Zezombia
I don't beleave AddStaticVehicle returns a value. Use CreateVehicle instead.
pawn Код:
new veh = AddStaticVehicle();
X
pawn Код:
new veh = CreateVehicle();
✔
|
they both return the vehicleID
Re: Two doubt about SA: MP 0.3 scripting -
TheNooB - 07.09.2009
Done!
Код:
ConnectNPC("NevadaSF","NevadaSF");
Код:
else if(!strcmp(playername,"NevadaSF",true)) {
SetSpawnInfo(playerid,69,61,0.0,0.0,0.0,0.0,-1,-1,-1,-1,-1,-1);
Код:
else if(!strcmp(playername,"NevadaSF", true)) {
NevadaSF = CreateVehicle(553,0.0,0.0,0.0,0.0,0,0,0);
PutPlayerInVehicle(playerid,NevadaSF,0);
SetPlayerColor(playerid,0xFFFFFFFF);