shape1
shape2
shape3
shape4
shape7
shape8

/park и /apark


Статус
Закрыто для дальнейших ответов.

Kostyaev

Магистр
Пользователь
19.07.2014
1 123
274
0
24
Команда чтобы припарковать авто самим игроком:

if(strcmp(cmd, "/park", true) == 0)
{
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_GRAD2, "Вы должны быть в авто");
new cars = GetPlayerVehicleID(playerid);
if(GetRealID(cars) == -1) return SendClientMessage(playerid, COLOR_GRAD2, "Вы должны быть в своём авто");
if(!strcmp(CarInfo[GetRealID(cars)][cOwner],Name(playerid),false)||!strcmp(CarInfo[GetRealID(cars)][cOwnerm],Name(playerid),false))
{
CarInfo[GetRealID(cars)][cFrontBullbars] = 0;
GetVehiclePos(cars, CarInfo[GetRealID(cars)][cPx],CarInfo[GetRealID(cars)][cPy],CarInfo[GetRealID(cars)][cPz]);
GetVehicleZAngle(cars, CarInfo[GetRealID(cars)][cPa]);
SendClientMessage(playerid, -1, "Теперь ваш автомобиль будет припаркован в этом месте");
SaveCar(GetRealID(cars));
return 1;
}
else return SendClientMessage(playerid, COLOR_GRAD2, "Это не ваш транспорт");

Команда чтобы припарковать авто Администратором:

Код:
if(strcmp(cmd, "/apark", true) == 0)
{
		if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_GRAD2, "Вы должны быть в авто");
		new cars = GetPlayerVehicleID(playerid);
		if(ServerClosed==1){SendClientMessage(playerid, COLOR_GRAD2, "Кмд временно не работает");return 1;}
		if(GetRealID(cars) == -1) return SendClientMessage(playerid, COLOR_GRAD2, "Вы должны быть в своём авто");
		if(PlayerInfo[playerid][pAdmin] >= 3)
		{
			GetVehiclePos(cars, CarInfo[GetRealID(cars)][cPx],CarInfo[GetRealID(cars)][cPy],CarInfo[GetRealID(cars)][cPz]);
			GetVehicleZAngle(cars, CarInfo[GetRealID(cars)][cPa]);
			SaveCar(GetRealID(cars));
			SendClientMessage(playerid, COLOR_GRAD2, "Теперь этот автомобиль будет припаркован в этом месте");
			return 1;
	}
 
Последнее редактирование модератором:

Krutihine

Участник
Пользователь
10.07.2014
546
187
0
Скриптер
Только вот надо будет подганять под мод...

 

Rwmont2000

Новичок
Пользователь
18.12.2014
304
14
0
22
Куда вставлять надо? В какой паблик?

 

Rwmont2000

Новичок
Пользователь
18.12.2014
304
14
0
22
У меня ошибка при компиляции. Что делать?

 

Rwmont2000

Новичок
Пользователь
18.12.2014
304
14
0
22
код ошибки кинь
C:\Users\Ïîëüçîâàòåëü\Desktop\Ìîäèê\gamemodes\111.pwn(2357) : error 004: function "PlayerToPoint" is not implemented

C:\Users\Ïîëüçîâàòåëü\Desktop\Ìîäèê\gamemodes\111.pwn(2361) : error 004: function "PlayerToPoint" is not implemented

C:\Users\Ïîëüçîâàòåëü\Desktop\Ìîäèê\gamemodes\111.pwn(2375) : error 004: function "PlayerToPoint" is not implemented

C:\Users\Ïîëüçîâàòåëü\Desktop\Ìîäèê\gamemodes\111.pwn(2379) : error 004: function "PlayerToPoint" is not implemented

C:\Users\Ïîëüçîâàòåëü\Desktop\Ìîäèê\gamemodes\111.pwn(2383) : error 004: function "PlayerToPoint" is not implemented

C:\Users\Ïîëüçîâàòåëü\Desktop\Ìîäèê\gamemodes\111.pwn(2387) : error 004: function "PlayerToPoint" is not implemented

C:\Users\Ïîëüçîâàòåëü\Desktop\Ìîäèê\gamemodes\111.pwn(2391) : error 004: function "PlayerToPoint" is not implemented

C:\Users\Ïîëüçîâàòåëü\Desktop\Ìîäèê\gamemodes\111.pwn(2403) : error 004: function "PlayerToPoint" is not implemented

C:\Users\Ïîëüçîâàòåëü\Desktop\Ìîäèê\gamemodes\111.pwn(2407) : error 004: function "PlayerToPoint" is not implemented

C:\Users\Ïîëüçîâàòåëü\Desktop\Ìîäèê\gamemodes\111.pwn(2411) : error 004: function "PlayerToPoint" is not implemented

C:\Users\Ïîëüçîâàòåëü\Desktop\Ìîäèê\gamemodes\111.pwn(2415) : error 004: function "PlayerToPoint" is not implemented

C:\Users\Ïîëüçîâàòåëü\Desktop\Ìîäèê\gamemodes\111.pwn(2419) : error 004: function "PlayerToPoint" is not implemented

C:\Users\Ïîëüçîâàòåëü\Desktop\Ìîäèê\gamemodes\111.pwn(2423) : error 004: function "PlayerToPoint" is not implemented

C:\Users\Ïîëüçîâàòåëü\Desktop\Ìîäèê\gamemodes\111.pwn(2427) : error 004: function "PlayerToPoint" is not implemented

C:\Users\Ïîëüçîâàòåëü\Desktop\Ìîäèê\gamemodes\111.pwn(2431) : error 004: function "PlayerToPoint" is not implemented

C:\Users\Ïîëüçîâàòåëü\Desktop\Ìîäèê\gamemodes\111.pwn(2435) : error 004: function "PlayerToPoint" is not implemented

C:\Users\Ïîëüçîâàòåëü\Desktop\Ìîäèê\gamemodes\111.pwn(2439) : error 004: function "PlayerToPoint" is not implemented

C:\Users\Ïîëüçîâàòåëü\Desktop\Ìîäèê\gamemodes\111.pwn(2443) : error 004: function "PlayerToPoint" is not implemented

C:\Users\Ïîëüçîâàòåëü\Desktop\Ìîäèê\gamemodes\111.pwn(2447) : error 004: function "PlayerToPoint" is not implemented

C:\Users\Ïîëüçîâàòåëü\Desktop\Ìîäèê\gamemodes\111.pwn(2451) : error 004: function "PlayerToPoint" is not implemented

C:\Users\Ïîëüçîâàòåëü\Desktop\Ìîäèê\gamemodes\111.pwn(2455) : error 004: function "PlayerToPoint" is not implemented

C:\Users\Ïîëüçîâàòåëü\Desktop\Ìîäèê\gamemodes\111.pwn(2459) : error 004: function "PlayerToPoint" is not implemented

C:\Users\Ïîëüçîâàòåëü\Desktop\Ìîäèê\gamemodes\111.pwn(2463) : error 004: function "PlayerToPoint" is not implemented

C:\Users\Ïîëüçîâàòåëü\Desktop\Ìîäèê\gamemodes\111.pwn(2467) : error 004: function "PlayerToPoint" is not implemented

C:\Users\Ïîëüçîâàòåëü\Desktop\Ìîäèê\gamemodes\111.pwn(2471) : error 004: function "PlayerToPoint" is not implemented

C:\Users\Ïîëüçîâàòåëü\Desktop\Ìîäèê\gamemodes\111.pwn(2475) : error 004: function "PlayerToPoint" is not implemented

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

26 Errors.
 
Последнее редактирование модератором:

Alexander1

Освоившийся
Пользователь
18.02.2015
205
55
0
C:\Users\Ïîëüçîâàòåëü\Desktop\Ìîäèê\gamemodes\111.pwn(2357) : error 004: function "PlayerToPoint" is not implemented

C:\Users\Ïîëüçîâàòåëü\Desktop\Ìîäèê\gamemodes\111.pwn(2361) : error 004: function "PlayerToPoint" is not implemented

C:\Users\Ïîëüçîâàòåëü\Desktop\Ìîäèê\gamemodes\111.pwn(2375) : error 004: function "PlayerToPoint" is not implemented

C:\Users\Ïîëüçîâàòåëü\Desktop\Ìîäèê\gamemodes\111.pwn(2379) : error 004: function "PlayerToPoint" is not implemented

C:\Users\Ïîëüçîâàòåëü\Desktop\Ìîäèê\gamemodes\111.pwn(2383) : error 004: function "PlayerToPoint" is not implemented

C:\Users\Ïîëüçîâàòåëü\Desktop\Ìîäèê\gamemodes\111.pwn(2387) : error 004: function "PlayerToPoint" is not implemented

C:\Users\Ïîëüçîâàòåëü\Desktop\Ìîäèê\gamemodes\111.pwn(2391) : error 004: function "PlayerToPoint" is not implemented

C:\Users\Ïîëüçîâàòåëü\Desktop\Ìîäèê\gamemodes\111.pwn(2403) : error 004: function "PlayerToPoint" is not implemented

C:\Users\Ïîëüçîâàòåëü\Desktop\Ìîäèê\gamemodes\111.pwn(2407) : error 004: function "PlayerToPoint" is not implemented

C:\Users\Ïîëüçîâàòåëü\Desktop\Ìîäèê\gamemodes\111.pwn(2411) : error 004: function "PlayerToPoint" is not implemented

C:\Users\Ïîëüçîâàòåëü\Desktop\Ìîäèê\gamemodes\111.pwn(2415) : error 004: function "PlayerToPoint" is not implemented

C:\Users\Ïîëüçîâàòåëü\Desktop\Ìîäèê\gamemodes\111.pwn(2419) : error 004: function "PlayerToPoint" is not implemented

C:\Users\Ïîëüçîâàòåëü\Desktop\Ìîäèê\gamemodes\111.pwn(2423) : error 004: function "PlayerToPoint" is not implemented

C:\Users\Ïîëüçîâàòåëü\Desktop\Ìîäèê\gamemodes\111.pwn(2427) : error 004: function "PlayerToPoint" is not implemented

C:\Users\Ïîëüçîâàòåëü\Desktop\Ìîäèê\gamemodes\111.pwn(2431) : error 004: function "PlayerToPoint" is not implemented

C:\Users\Ïîëüçîâàòåëü\Desktop\Ìîäèê\gamemodes\111.pwn(2435) : error 004: function "PlayerToPoint" is not implemented

C:\Users\Ïîëüçîâàòåëü\Desktop\Ìîäèê\gamemodes\111.pwn(2439) : error 004: function "PlayerToPoint" is not implemented

C:\Users\Ïîëüçîâàòåëü\Desktop\Ìîäèê\gamemodes\111.pwn(2443) : error 004: function "PlayerToPoint" is not implemented

C:\Users\Ïîëüçîâàòåëü\Desktop\Ìîäèê\gamemodes\111.pwn(2447) : error 004: function "PlayerToPoint" is not implemented

C:\Users\Ïîëüçîâàòåëü\Desktop\Ìîäèê\gamemodes\111.pwn(2451) : error 004: function "PlayerToPoint" is not implemented

C:\Users\Ïîëüçîâàòåëü\Desktop\Ìîäèê\gamemodes\111.pwn(2455) : error 004: function "PlayerToPoint" is not implemented

C:\Users\Ïîëüçîâàòåëü\Desktop\Ìîäèê\gamemodes\111.pwn(2459) : error 004: function "PlayerToPoint" is not implemented

C:\Users\Ïîëüçîâàòåëü\Desktop\Ìîäèê\gamemodes\111.pwn(2463) : error 004: function "PlayerToPoint" is not implemented

C:\Users\Ïîëüçîâàòåëü\Desktop\Ìîäèê\gamemodes\111.pwn(2467) : error 004: function "PlayerToPoint" is not implemented

C:\Users\Ïîëüçîâàòåëü\Desktop\Ìîäèê\gamemodes\111.pwn(2471) : error 004: function "PlayerToPoint" is not implemented

C:\Users\Ïîëüçîâàòåëü\Desktop\Ìîäèê\gamemodes\111.pwn(2475) : error 004: function "PlayerToPoint" is not implemented

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

26 Errors.
мод какой ?
 

Sten

Unknown
Пользователь
08.05.2014
830
77
0
попробуйте в конец мода вставить это

Код:
public PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)
{
if(IsPlayerConnected(playerid))
{
new Float:oldposx, Float:oldposy, Float:oldposz;
new Float:tempposx, Float:tempposy, Float:tempposz;
GetPlayerPos(playerid, oldposx, oldposy, oldposz);
tempposx = (oldposx -x);
tempposy = (oldposy -y);
tempposz = (oldposz -z);
//printf("DEBUG: X:%f Y:%f Z:%f",posx,posy,posz);
if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
{
return 1;
}
}
return 0;
}
 

Rwmont2000

Новичок
Пользователь
18.12.2014
304
14
0
22

Kimles

Новичок
Пользователь
08.03.2016
1
0
0
C:\Users\Kimles\Desktop\Big City Life\new.pwn(27783) : error 012: invalid function call, not a valid address
C:\Users\Kimles\Desktop\Big City Life\new.pwn(27783) : warning 215: expression has no effect
C:\Users\Kimles\Desktop\Big City Life\new.pwn(27783) : error 001: expected token: ";", but found ")"
C:\Users\Kimles\Desktop\Big City Life\new.pwn(27783) : error 029: invalid expression, assumed zero
C:\Users\Kimles\Desktop\Big City Life\new.pwn(27783) : fatal error 107: too many error messages on one line
 
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
 
 
4 Errors.
 
 
 
Помогите, выбивает при копиляции.
 
Статус
Закрыто для дальнейших ответов.