Sign in to follow this  
Followers 0

[MxINI] /gotoug - ТПхнуться в Южный

1 post in this topic

SlenderTop4ik
Новичок

Здравствуйте, сегодня я бы хотел представить вам команду "/gotoug". Она нужна, чтобы телепортироваться в г.Южный. Код ниже:

Автор: Неизвестен

Слил команду: Я (SlenderTop4ik)

	if(strcmp(cmd, "/gotoug", true) == 0)
	{
		if(IsPlayerConnected(playerid))
		{
			if(PlayerInfo[playerid][pAdmin] >= 1)
			{
				if (GetPlayerState(playerid) == 2)
				{
					new tmpcar = GetPlayerVehicleID(playerid);
					SetVehiclePos(tmpcar, 2563.4822,-2186.4199,23.9709);
					TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
				}
				else
				{
					SetPlayerPos(playerid, 2563.4822,-2186.4199,23.9709);
				}
				SendClientMessage(playerid, COLOR_GRAD1, "Вы были телепортированы в Южный");
				SetPlayerInterior(playerid,0);
				PlayerInfo[playerid][pInt] = 0;
			}
			else
			{
				SendClientMessage(playerid, COLOR_GRAD1, "У вас нет прав на использование этой команды!");
			}
		}
		return 1;
	}

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • ANIME_TOP12YLTRA
      By ANIME_TOP12YLTRA
      Помогите пожалуйста у меня еррор при компиляции
      C:\RED RUSSIA GAMES - МОД\pawno\include\customtune.inc(179) : error 001: expected token: ";", but found "["
      C:\RED RUSSIA GAMES - МОД\pawno\include\customtune.inc(179) : error 029: invalid expression, assumed zero
      C:\RED RUSSIA GAMES - МОД\pawno\include\customtune.inc(179) : warning 221: label name "E_HANDLING_PARAMS" shadows tag name
      C:\RED RUSSIA GAMES - МОД\pawno\include\customtune.inc(179) : error 001: expected token: ";", but found "]"
      C:\RED RUSSIA GAMES - МОД\pawno\include\customtune.inc(179) : fatal error 107: too many error messages on one line
      Compilation aborted.
      Pawn compiler 3.2.3664              Copyright (c) 1997-2016, ITB CompuPhase

      4 Errors.
       
      код - g_VehHandlingInfo[veh][E_HANDLING_PARAMS:j] = 0.0;
    • Young_Boych1k
      By Young_Boych1k
       
      В моде инклуд LauncherAddon подключил сразу после a_samp.
      Помогите пожалуйста

      После подключения к серверу лог заспамило этим: