Maerovich
Умник
Ребята можете помочь с еще такой штукой...
У меня есть
Я не могу в него вставить этот код:
Вот сам паблик Буду очень благодарен если вы мне поможете.
---------- Post added at 00:44 ---------- Previous post was at 00:21 ----------
Вопрос решен.
У меня есть
Код:
public CustomPickups()
PHP:
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(!PlayerToPoint(5.0, i, PosPic[0][i], PosPic[1][i], PosPic[2][i])) Dpic[i] = 0;
if(GetPlayerState(i) == PLAYER_STATE_DRIVER)
{
new skill = PlayerInfo[i][pCarSkill];
new tacha = GetPlayerVehicleID(i);
if(!IsAPlane(tacha) && !IsABoat(tacha) && !IsANoSpeed(tacha))
{
if(skill == 0 || Arrester[i] == true)
{
if(SpeedVehicle(i) >= 50)
{
new Float:x,Float:y,Float:z;
GetVehicleVelocity(GetPlayerVehicleID(i),x,y,z);
SetVehicleVelocity(GetPlayerVehicleID(i),x*0.989,y*0.989,z);
}
}
}
}
PHP:
public CustomPickups()
{
new Float:oldposx, Float:oldposy, Float:oldposz;
NameTimer();
foreach(new i : Player)
{
GetPlayerPos(i, oldposx, oldposy, oldposz);
if(oldposx!=0.0 && oldposy!=0.0 && oldposz!=0.0)
{
for(new b = 0; b < TotalWorkShops; b++)
{
if (PlayerToPoint(1,i,AvtoInfo[b][abEntranceX], AvtoInfo[b][abEntranceY], AvtoInfo[b][abEntranceZ]))
{
SetPlayerInterior(i,3);
SetPlayerPos(i,1496.5647,1305.8641,1093.2891);
PlayerInfo[i][pInt] = 3;
SetPlayerVirtualWorld(i,AvtoInfo[b][abWorld]);
SetPlayerFacingAngle(i, 172.8032);
return true;
}
}
}
}
return true;
}
---------- Post added at 00:44 ---------- Previous post was at 00:21 ----------
Вопрос решен.
Последнее редактирование:
