[Include] Teleports.
#9

Quote:
Originally Posted by xXitsgodzillaXx
Посмотреть сообщение
Hi guys i just thought i make some teleports that some people can use.
This is more for the new scripters that are out there.
For all the more professinal scripters, this is just somthing i decided to do for the community. So if they dont know how to make a teleport filterscript they can just add this to thier GM.
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
	if(strcmp("/teleportA",cmdtext,true) == 0)
     {
     new str[128];
     format(str,sizeof(str),"You Have Been Teleported");
     SendClientMessage(playerid,-1,str);
     SetVehiclePos(playerid,x,y,z);
     SetPlayerPos(playerid,x,y,z);
     return 1;
     }
	if(strcmp("/teleportB",cmdtext,true) == 0)
     {
     new str[128];
     format(str,sizeof(str),"You Have Been Teleported");
     SendClientMessage(playerid,-1,str);
     SetVehiclePos(playerid,x,y,z);
     SetPlayerPos(playerid,x,y,z);
     return 1;
     }
	if(strcmp("/teleportC",cmdtext,true) == 0)
     {
     new str[128];
     format(str,sizeof(str),"You Have Been Teleported");
     SendClientMessage(playerid,-1,str);
     SetVehiclePos(playerid,x,y,z);
     SetPlayerPos(playerid,x,y,z);
     return 1;
     }
  if(strcmp("/teleportD",cmdtext,true) == 0)
     {
     new str[128];
     format(str,sizeof(str),"You Have Been Teleported");
     SendClientMessage(playerid,-1,str);
     SetVehiclePos(playerid,x,y,z);
     SetPlayerPos(playerid,x,y,z);
     return 1;
     }
  if(strcmp("/teleportE",cmdtext,true) == 0)
     {
     new str[128];
     format(str,sizeof(str),"You Have Been Teleported");
     SendClientMessage(playerid,-1,str);
     SetVehiclePos(playerid,x,y,z);
     SetPlayerPos(playerid,x,y,z);
     return 1;
     }
  if(strcmp("/teleportF",cmdtext,true) == 0)
     {
     new str[128];
     format(str,sizeof(str),"You Have Been Teleported");
     SendClientMessage(playerid,-1,str);
     SetVehiclePos(playerid,x,y,z);
     SetPlayerPos(playerid,x,y,z);
     return 1;
     }

}
So all you have to do is add this code to your gamemode. but make sure that its under "public OnPlayerCommandText(playerid, cmdtext"
And then you can change the X, Y, and Z coordinates, the name of the teleport, and a little message to the player :P
What about the
Код:
WorldInterior
I make up a teleport like this.but i dont get the right to compile the gm becouse of that !
And you better to add this on Scripting Discussion Any way nice !
Reply


Messages In This Thread
Teleports. - by xXitsgodzillaXx - 27.02.2012, 14:06
Re: Teleports. - by legodude - 27.02.2012, 14:21
Re: Teleports. - by xXitsgodzillaXx - 27.02.2012, 14:22
Re: Teleports. - by ShOoBy - 27.02.2012, 14:23
Re: Teleports. - by xXitsgodzillaXx - 27.02.2012, 14:27
Re: Teleports. - by TheArcher - 27.02.2012, 14:47
Re: Teleports. - by Konstantinos - 27.02.2012, 14:51
Re: Teleports. - by xXitsgodzillaXx - 27.02.2012, 15:08
Re: Teleports. - by Mr.WAngD0 - 27.02.2012, 15:09
Re: Teleports. - by xXitsgodzillaXx - 27.02.2012, 15:12
Re: Teleports. - by Konstantinos - 27.02.2012, 15:12
Re: Teleports. - by xXitsgodzillaXx - 27.02.2012, 15:18
Re: Teleports. - by Konstantinos - 27.02.2012, 15:22
Re: Teleports. - by steki. - 27.02.2012, 15:26
Re: Teleports. - by xXitsgodzillaXx - 27.02.2012, 16:27
Re: Teleports. - by xXitsgodzillaXx - 27.02.2012, 16:31
Re: Teleports. - by TheBetaFox - 27.02.2012, 16:31

Forum Jump:


Users browsing this thread: 3 Guest(s)