SA-MP Forums Archive
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)
+--- Thread: Help (/showthread.php?tid=543902)



Help - Trollerz - 29.10.2014

HElo guyz ,,, it's hard to to make a Fs without you guyz i need help.....

like every map has a teleport commands so can someone tell me that commands?


Re: Help - Glossy42O - 29.10.2014

Which commands? tell us ? sf? ls?


Re: Help - Trollerz - 29.10.2014

It would be a pleasure if u give me ls tp code


Re: Help - Glossy42O - 29.10.2014

I need coordinates.


Re: Help - Trollerz - 29.10.2014

and can you tell me what is the problem in this


Code:
    // On top of script:
new Text:JoinLeave;

// In OnGameModeInit
JoinLeave = TextDrawCreate(564, 441, "Welcome to the server");
TextDrawFont(Join/Leave , 1);
TextDrawLetterSize(Join/Leave , 0.4, 2.8);
TextDrawColor(Join/Leave , 0xFF8040FF);
TextDrawSetOutline(Join/Leave , 0);
TextDrawSetProportional(Join/Leave , 1);
TextDrawSetShadow(Join/Leave , 12);
TextDrawUseBox(Join/Leave,1);
TextDrawBoxColor(Join/Leave, );
TextDrawTextSize(Join/Leave, 0, 0);



Re: Help - Trollerz - 29.10.2014

cordinates =CreateObject(18785, 1278.45740, 1302.25293, 12.02410, 0.00000, 0.00000, 180.00000);


Re: Help - Glossy42O - 29.10.2014

Try this

https://sampforum.blast.hk/showthread.php?pid=3239130#pid3239130

https://sampforum.blast.hk/showthread.php?tid=173487


Re: Help - mkmk - 29.10.2014

Do you mean something like /teleport Los santos?
Or /goto (playerid)
What one


Re: Help - Blademaster680 - 29.10.2014

Try this
Code:
CMD:teleport(playerid, params[])
{
	new choice[32];
	if(sscanf(params, "s[32]", choice))
	{
		SendClientMessage(playerid, COLOR_GREY, "USAGE: /teleport[choice]");
		SendClientMessage(playerid, COLOR_GREY, "Choices: LS");
		return 1;
	}
	if(strcmp(choice, "ls", true) == 0)
	{
		if(IsPlayerInAnyVehicle(playerid)) 
		{
			SetPlayerPos(playerid, 1529.58, -1687, 13.37);
			new veh = GetPlayerVehicleID(playerid);
			SetVehiclePos(veh, 1529.58, -1687, 13.37); 
			PutPlayerInVehicle(playerid, veh, 0); 
			SendClientMessage(playerid, -1, "You have been teleported.");
			SetPlayerInterior(playerid, 0);
			SetPlayerVirtualWorld(playerid, 0);
			SetPlayerArmedWeapon(playerid,0);
			pInfo[playerid][pInt] = 0;
		}
		else
		{
			SetPlayerPos(playerid, 1529.58, -1687, 13.37); 
			SendClientMessage(playerid, -1, "You have been teleported.");
			SetPlayerInterior(playerid, 0);
			SetPlayerVirtualWorld(playerid, 0);
			pInfo[playerid][pInt] = 0;
		}	
	}