16.06.2011, 01:02
ok i got up today and started on this again put in the streamer to find it didn't fix my problem. so i thought maybe i didn't make my self clear on it and what i wanted it to do. so here i go again and hopefully i can make it sound better to get the right help i need lol. ok as you see i added my codes for it and yes it is a DynamicCP. what im needing to know is the placement of the cords. yes i have little to no time on scripting but im givin it a shot to see what i can do but i need to understand how it works first lol.
old codes im going off of
new cp_chrishouse; //Chris House IN
new cp_chrishouseout; // Chris House OUT
cp_chrishouse = CreateDynamicCP(301.0750,1141.2693,9.1375,2.0,-1, -1, -1, 10.0); // Chris Personal House IN (tele in to the house)
cp_chrishouseout = CreateDynamicCP(2269.5127,-1210.5450,1047.5625,2.0,1, 10, -1, 10.0); // Chris Personal House Out (tele out of the house)
public OnPlayerEnterDynamicCP(playerid, checkpointid)
{
if(checkpointid == cp_chrishouse) // this is out side of the house
{
SetPlayerInterior(playerid,10);
SetPlayerPos(playerid,2260.76,-1210.45,1049.02);
SetPlayerVirtualWorld(playerid,1);
}
if(checkpointid == cp_chrishouseout) // this is in the house
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,303.0192,1141.1016,8.5859);
SetPlayerVirtualWorld(playerid,0);
}
My codes im using
new cp_nsbin; //Gang HQ IN
new cp_nsbout; // Gang HQ OUT
cp_nsbin = CreateDynamicCP(301.0750,1141.2693,9.1375,2.0,-1, -1, -1, 10.0); // Gang HQ IN
cp_nsbout = CreateDynamicCP(2269.5127,-1210.5450,1047.5625,2.0,1, 10, -1, 10.0); // Gang HQ Out
public OnPlayerEnterDynamicCP(playerid, checkpointid)
{
if(checkpointid == cp_nsbin)
{
SetPlayerInterior(playerid,10);
SetPlayerPos(playerid,2260.76,-1210.45,1049.02);
SetPlayerVirtualWorld(playerid,1);
}
if(checkpointid == cp_nsbout)
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,303.0192,1141.1016,8.5859);
SetPlayerVirtualWorld(playerid,0);
}
ok here is the question. does the IN & IN and OUT & OUT go together or does 1 IN go with 1 OUT
EXP: when i walk up to the checkpoint and go into the check point. it should tele me in the Interior of what im using. as you can see from the top of each call of chrishouse 301.0750 and the chrishouseout 303.0192 are close to be some what of the same cord
so when i do my cords do i need to put one pair as in and one as out?
old codes im going off of
new cp_chrishouse; //Chris House IN
new cp_chrishouseout; // Chris House OUT
cp_chrishouse = CreateDynamicCP(301.0750,1141.2693,9.1375,2.0,-1, -1, -1, 10.0); // Chris Personal House IN (tele in to the house)
cp_chrishouseout = CreateDynamicCP(2269.5127,-1210.5450,1047.5625,2.0,1, 10, -1, 10.0); // Chris Personal House Out (tele out of the house)
public OnPlayerEnterDynamicCP(playerid, checkpointid)
{
if(checkpointid == cp_chrishouse) // this is out side of the house
{
SetPlayerInterior(playerid,10);
SetPlayerPos(playerid,2260.76,-1210.45,1049.02);
SetPlayerVirtualWorld(playerid,1);
}
if(checkpointid == cp_chrishouseout) // this is in the house
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,303.0192,1141.1016,8.5859);
SetPlayerVirtualWorld(playerid,0);
}
My codes im using
new cp_nsbin; //Gang HQ IN
new cp_nsbout; // Gang HQ OUT
cp_nsbin = CreateDynamicCP(301.0750,1141.2693,9.1375,2.0,-1, -1, -1, 10.0); // Gang HQ IN
cp_nsbout = CreateDynamicCP(2269.5127,-1210.5450,1047.5625,2.0,1, 10, -1, 10.0); // Gang HQ Out
public OnPlayerEnterDynamicCP(playerid, checkpointid)
{
if(checkpointid == cp_nsbin)
{
SetPlayerInterior(playerid,10);
SetPlayerPos(playerid,2260.76,-1210.45,1049.02);
SetPlayerVirtualWorld(playerid,1);
}
if(checkpointid == cp_nsbout)
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,303.0192,1141.1016,8.5859);
SetPlayerVirtualWorld(playerid,0);
}
ok here is the question. does the IN & IN and OUT & OUT go together or does 1 IN go with 1 OUT
EXP: when i walk up to the checkpoint and go into the check point. it should tele me in the Interior of what im using. as you can see from the top of each call of chrishouse 301.0750 and the chrishouseout 303.0192 are close to be some what of the same cord
so when i do my cords do i need to put one pair as in and one as out?