SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 18/01/2015, 04:25 AM   #1
sirvanec
Big Clucker
 
Join Date: Nov 2014
Posts: 117
Reputation: 0
Default Spawns from house

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; }
}
}
sirvanec is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[FilterScript] Cali-Houses: Create a house anywhere, dynamic house creating! California Filterscripts 257 31/05/2018 02:23 AM
Gagi's House System's House cords problem Wahaj Scripting Help 2 03/07/2014 03:15 PM
Help me for house bug , stats ID : house 1 , house 2 Owner jesdynguyen Scripting Help 1 02/06/2014 05:57 AM
if someone spawns inside a house GangMember211 Help Archive 5 23/12/2009 08:52 PM
Random Spawns + Previous Spawns XtremeChio Help Archive 2 01/09/2009 01:57 PM


All times are GMT. The time now is 04:30 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.