Spawns from house
#1

Hi guys, i have a house system that spawns player when player clicks enter on the pickup and want to get out from house but the system spawn that player. I need to fix it so that spawn player to the door or i mean spawn there the house pickup is. Thanks

Quote:

if(newkeys == 16)
{
if(!IsPlayerInAnyVehicle(playerid))
{
new evid = GetHouseID(playerid);
if(evid != -255)
{
if(IsPlayerAdmin(playerid)) Mesaj(playerid,"Rcon admin bypass aktif!");
else if(EvSahipID[evid] == playerid) Mesaj(playerid,"Evinize hoюgeldiniz!"),Mesaj(playerid,"Evinizi dьzenlemek veya ayarlarэna girmek iзin '{008080}/evmenu{FFFFFF}' komutunu kullanэnэz.");
else if(EvBilgi[evid][evkilit] == 1) return Mesaj(playerid,"Bu ev kilitli, kilitli evlere giremezsiniz.");
if(EvBilgi[evid][evint] == 0) PlayerPos(playerid,2324.3735,-1148.8219,1050.7101,12,EvBilgi[evid][evworld]);
else if(EvBilgi[evid][evint] == 1) PlayerPos(playerid,225.756989 ,1240.000000 ,1082.149902 ,2,EvBilgi[evid][evworld]);
else if(EvBilgi[evid][evint] == 2) PlayerPos(playerid,222.9848,1287.5624,1082.1406 ,1,EvBilgi[evid][evworld]);
else if(EvBilgi[evid][evint] == 3) PlayerPos(playerid,225.630997,1022.479980,1084.069 946,7,EvBilgi[evid][evworld]);
else if(EvBilgi[evid][evint] == 4) PlayerPos(playerid,295.2057,1472.9973,1080.2578,15 ,EvBilgi[evid][evworld]);
else if(EvBilgi[evid][evint] == 5) PlayerPos(playerid,327.9004,1478.2839,1084.4375,15 ,EvBilgi[evid][evworld]);
else if(EvBilgi[evid][evint] == 6) PlayerPos(playerid,385.803986,1471.769897,1080.209 961,15,EvBilgi[evid][evworld]);
else if(EvBilgi[evid][evint] == 7) PlayerPos(playerid,2255.0129,-1139.9670,1050.6328,9,EvBilgi[evid][evworld]);
else if(EvBilgi[evid][evint] == PlayerPos(playerid,2269.3037,-1210.4395,1047.5625,10,EvBilgi[evid][evworld]);
else if(EvBilgi[evid][evint] == 9) PlayerPos(playerid,2496.0330,-1692.9246,1014.7422,3,EvBilgi[evid][evworld]);
else if(EvBilgi[evid][evint] == 10) PlayerPos(playerid, 1299.14 , -794.77 , 1084.00 ,5,EvBilgi[evid][evworld]);
else if(EvBilgi[evid][evint] == 11) PlayerPos(playerid,2259.8408,-1135.7609,1050.6328,10,EvBilgi[evid][evworld]);
else if(EvBilgi[evid][evint] == 12) PlayerPos(playerid,2365.2190,-1135.1531,1050.8750,8,EvBilgi[evid][evworld]);
else if(EvBilgi[evid][evint] == 13) PlayerPos(playerid,2324.3735,-1148.8219,1050.7101,12,EvBilgi[evid][evworld]);
OyuncuEv[playerid] = evid;
return 1;
}
else if(IsPlayerInRangeOfPoint(playerid,2,2324.3735,-1148.8219,1050.7101) ||
IsPlayerInRangeOfPoint(playerid,2,235.1575,1187.27 21,1080.257 ||
IsPlayerInRangeOfPoint(playerid,2,225.756989,1240. 000000,1082.149902) ||
IsPlayerInRangeOfPoint(playerid,2,222.9848,1287.56 24,1082.1406) ||
IsPlayerInRangeOfPoint(playerid,2,225.630997,1022. 479980,1084.069946) ||
IsPlayerInRangeOfPoint(playerid,2,295.2057,1472.99 73,1080.257 ||
IsPlayerInRangeOfPoint(playerid,2,327.9004,1478.28 39,1084.4375) ||
IsPlayerInRangeOfPoint(playerid,2,385.803986,1471. 769897,1080.209961) ||
IsPlayerInRangeOfPoint(playerid,2,2255.0129,-1139.9670,1050.632 ||
IsPlayerInRangeOfPoint(playerid,2,2269.3037,-1210.4395,1047.5625) ||
IsPlayerInRangeOfPoint(playerid,2,2496.0330,-1692.9246,1014.7422) ||
IsPlayerInRangeOfPoint(playerid,2,1299.14,-794.77,1084.00) ||
IsPlayerInRangeOfPoint(playerid,2,2259.8408,-1135.7609,1050.632 ||
IsPlayerInRangeOfPoint(playerid,2,2365.2190,-1135.1531,1050.8750))
{ if(OyuncuEv[playerid]>=0)PlayerPos(playerid,EvBilgi[OyuncuEv[playerid]][ev_X],EvBilgi[OyuncuEv[playerid]][ev_Y],EvBilgi[OyuncuEv[playerid]][ev_Z],0,0);else CallLocalFunction("OnPlayerSpawn", "d", playerid); OyuncuEv[playerid] = -255; }
}
}

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)