SA-MP Forums Archive
NEED HELP MAKING TELEPORTS AND ADDING THEM PLZ HELP - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: NEED HELP MAKING TELEPORTS AND ADDING THEM PLZ HELP (/showthread.php?tid=73446)



NEED HELP MAKING TELEPORTS AND ADDING THEM PLZ HELP - PDRP_JUSTIN - 15.04.2009

i need helping adding teleports into my server can someone please help me

i have some co-ords i can give u and can u help/show me how to make these teleport


AddPlayerClass(106,-2401.9023,-1632.2725,521.2131,260.0227,0,0,0,0,0,0); // chilliad

AddPlayerClass(106,2495.5273,-1689.0653,14.1981,3.3946,0,0,0,0,0,0); // /grove

my emails are

justinsingh83@live.com

justinsingh83@ymail.com[/b][/i][/u]


Re: NEED HELP MAKING TELEPORTS AND ADDING THEM PLZ HELP - Backwardsman97 - 15.04.2009

Really simple.

pawn Код:
if(!strcmp(cmdtext,"/chilliad",true))
{
   if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
   {
     new veh = GetPlayerVehicleID(playerid);
     SetVehiclePos(veh,-2401.9023,-1632.2725,521.2131);
     SetVehicleZAngle(veh,260.0);
     SetPlayerInterior(playerid,0);
     return 1;
   }
   else
   {
     SetPlayerPos(playerid,-2401.9023,-1632.2725,521.2131);
     SetPlayerFacingAngle(playerid,260.0);
     return 1;
   }
   return 1;
}



Re: NEED HELP MAKING TELEPORTS AND ADDING THEM PLZ HELP - _PDDRIFTER_ - 15.04.2009

i tryed this and it says pawno libary stop workin


Re: NEED HELP MAKING TELEPORTS AND ADDING THEM PLZ HELP - Danut - 15.04.2009

you don't have pawno's include


Re: NEED HELP MAKING TELEPORTS AND ADDING THEM PLZ HELP - Weirdosport - 15.04.2009

You need #include <a_samp> at the top of your script.

Also, backwardsman97, you need LinkVehicleToInterior, otherwise you'll have an invisible car.