Public feed #601204

Anonymous

public text v1 · immutable
Raw Edit
·published 2007-07-03 11:11 UTC
rendered paste body
#include <a_samp>
#include <file>
#include <string>

main()
{
	print("\n----------------------------------");
	print("  This is a blank GameModeScript");
	print("----------------------------------\n");
}



public OnGameModeInit()
{
	print("teleport commands by danielox");
	return 1;
}


public OnGameModeExit()
{
	return 1;
}



public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/tele-lv", true)==0)
	{
		 if(IsPlayerInAnyVehicle(playerid))
			{
			   new Float:X;
               new Float:Y;
               new Float:Z;
                new VehicleID;
                GetPlayerPos(playerid, X, Y, Z);
                VehicleID = GetPlayerVehicleID(playerid);
               SetVehiclePos(VehicleID, 2038.4742,1338.9492,10.6719);
               SetVehicleZAngle(VehicleID,265.7448);
               SetPlayerInterior(playerid,0); //Sets the interior, set it to 0 if its on the normal "outside" world.
               GameTextForPlayer(playerid, "Tu atrodies Las venturas",3000,5);
            } else {
               new Float:X;
               new Float:Y;
               new Float:Z;
               GetPlayerPos(playerid, X, Y, Z);
               SetPlayerPos(playerid, 2038.4742,1338.9492,10.6719);
               SetPlayerFacingAngle(playerid,181.7940);
               SetPlayerInterior(playerid,0); //Sets the interior, set it to 0 if its on the normal "outside" world.
               GameTextForPlayer(playerid, "Tu atrodies Las venturas",3000,5);
				}
		return 1;
	}


 if(strcmp(cmdtext, "/tele-sf", true)==0)
	{
		 if(IsPlayerInAnyVehicle(playerid))
			{
			   new Float:X;
               new Float:Y;
               new Float:Z;
                new VehicleID;
                GetPlayerPos(playerid, X, Y, Z);
                VehicleID = GetPlayerVehicleID(playerid);
               SetVehiclePos(VehicleID, -2030.0209,174.6712,28.8359);
               SetVehicleZAngle(VehicleID,265.7448);
               SetPlayerInterior(playerid,0); //Sets the interior, set it to 0 if its on the normal "outside" world.
               GameTextForPlayer(playerid, "Tu atdrodies San fierro",3000,5);
            } else {
               new Float:X;
               new Float:Y;
               new Float:Z;
               GetPlayerPos(playerid, X, Y, Z);
               SetPlayerPos(playerid, -2030.0209,174.6712,28.8359);
               SetPlayerFacingAngle(playerid,181.7940);
               SetPlayerInterior(playerid,0); //Sets the interior, set it to 0 if its on the normal "outside" world.
               GameTextForPlayer(playerid, "Tu atdrodies San fierro",3000,5);
				}
		return 1;
	}

		if(strcmp(cmdtext, "/tele-ls", true)==0)
	{
		 if(IsPlayerInAnyVehicle(playerid))
			{
			   new Float:X;
               new Float:Y;
               new Float:Z;
                new VehicleID;
               GetPlayerPos(playerid, X, Y, Z);
                VehicleID = GetPlayerVehicleID(playerid);
               SetVehiclePos(VehicleID, 2485.3784,-1669.2168,13.3359);
               SetVehicleZAngle(VehicleID,265.7448);
               SetPlayerInterior(playerid,0); //Sets the interior, set it to 0 if its on the normal "outside" world.
               GameTextForPlayer(playerid, "To atrodies Los santos",3000,5);
            } else {
               new Float:X;
               new Float:Y;
               new Float:Z;
               GetPlayerPos(playerid, X, Y, Z);
               SetPlayerPos(playerid, 2485.3784,-1669.2168,13.3359);
               SetPlayerFacingAngle(playerid,181.7940);
               SetPlayerInterior(playerid,0); //Sets the interior, set it to 0 if its on the normal "outside" world.
               GameTextForPlayer(playerid, "Tu atrodies Los santos",3000,5);
				}
		return 1;
}
}