It is bugged? -
T.I. - 10.04.2009
I am sick-minded about my bug...
Today I wanted to make some new Spawn Points for Ballas and Vagos, so I decided to make the Vagos Gang House as home base for Ballas.
I added the cars, it hasn't any problems, I added the skins, but when I selected Ballas, my character was in the air and he fall up on the Earth...
Umm, I saved the position in that house, so maybe this is the problem, but how to make this working? I want Ballas spawning in the house.
Thanks a lot!!!!
Re: It is bugged? -
*ToM* - 10.04.2009
You have to use SetPlayerInterior(playerid,interiorid)
Re: It is bugged? -
T.I. - 10.04.2009
Umm, give me an example...
And where I take the interiors?
EDIT: The interiors are Vagos Gang House and Colonel Blah Blah Blah House from East Beach...
Re: It is bugged? -
Joe Staff - 10.04.2009
Go inside the house and type /interior (if in debug mode) and it will tell you the interior id, then before you do the SetPlayerPos(); function in your script (Where you have them being teleported to the house), and put SetPlayerInterior(playerid,<WhateverThatInteriorNu mberWas>);
Just remember, then when they exit (if it itsn't automatic) to set their interior to 0
Re: It is bugged? -
*ToM* - 10.04.2009
I don't know all interior ids, but you can try here :
https://sampwiki.blast.hk/wiki/InteriorIDs
Also , give me the .pwn code and I will try to help you
Re: It is bugged? -
T.I. - 10.04.2009
Umm, the Interiors are 5 for Vagos House and 8 for Colonel's House.
I added this but still "flying" in the air...I need to do else?Btw, how to change Camera Position?
Код:
case 5, 6, 7:
{
GameTextForPlayer(playerid, "~g~~n~~n~~n~~n~~n~~n~~n~Ballas", 2500, 3);
SetPlayerInterior(playerid,5);
SetPlayerPos(playerid,881.5674,-1119.8534,27.5156);
SetPlayerFacingAngle(playerid,225);
SetPlayerCameraPos(playerid,884.4119,-1121.7452,28.5724);
SetPlayerCameraLookAt(playerid,881.5674,-1119.8534,27.5156);
}
case 8, 9, 10:
{
GameTextForPlayer(playerid, "~g~~n~~n~~n~~n~~n~~n~~n~Los Vagos", 2500, 3);
SetPlayerInterior(playerid,8);
SetPlayerPos(playerid,2458.8828,-923.0618,90.4615);
SetPlayerFacingAngle(playerid,0);
SetPlayerCameraPos(playerid,2458.8660,-919.5648,92.8043);
SetPlayerCameraLookAt(playerid,2458.8828,-923.0618,90.4615);
}

?
Re: It is bugged? -
T.I. - 10.04.2009
There are the classes:
Код:
// Ballas (3) 5 6 7
AddPlayerClassEx(2,102,2335.1995,-1175.5610,1027.9766,176.1675,WEAPON_KNIFE,1,WEAPON_TEC9,300,WEAPON_SPRAYCAN,1000);
AddPlayerClassEx(2,104,2345.2422,-1185.3920,1027.9766,310.9021,WEAPON_KNIFE,1,WEAPON_UZI,300,WEAPON_AK47,150); //new
AddPlayerClassEx(2,/*226*/103,2333.6904,-1180.7773,1027.9766,269.8785,WEAPON_SHOVEL,1,WEAPON_COLT45,150,WEAPON_M4,250); //new
// Vagos (3) 8 9 10
AddPlayerClassEx(3,108,2807.6667,-1167.4866,1025.5703,179.5416,WEAPON_GOLFCLUB,1,WEAPON_MP5,150,WEAPON_AK47,175);
AddPlayerClassEx(3,109,2810.7947,-1162.3953,1029.1719,93.3975,WEAPON_GOLFCLUB,1,WEAPON_DEAGLE,120,WEAPON_M4,150);
AddPlayerClassEx(3,110,2815.5938,-1166.0760,1029.1719,89.0108,WEAPON_GOLFCLUB,1,WEAPON_SHOTGUN,100,WEAPON_MP5,200); //new