30.01.2012, 00:53
Eu criei uma org no meu gm e ela ta toda certa , mas acontece que os carros qualquer uma pode pegar =s
Aqui vгo os Codigos
Tipo nгo da nenhum erro nem Waring ... mas eles nao ficam restringidos ... pq ?
Aqui vгo os Codigos
pawn Код:
new MLcars[15];
pawn Код:
MLcars[0] = CreateVehicle(596,-95.6788, -1555.4833, 2.2300, -52.0000,0,0,999999999);
MLcars[1] = CreateVehicle(596,-93.5744, -1558.2927, 2.2300, -52.0000,0,0,999999999);
MLcars[2] = CreateVehicle(427,-98.7248, -1591.4651, 2.2300, -55.0000,0,0,999999999);
MLcars[3] = CreateVehicle(427,-101.6354, -1585.8706, 2.6920, -55.0000,0,0,999999999);
MLcars[4] = CreateVehicle(599,-76.6002, -1580.3295, 2.6920, -113.0000,0,0,999999999);
MLcars[5] = CreateVehicle(599,-73.5477, -1577.8221, 2.6920, -113.0000,0,0,999999999);
MLcars[6] = CreateVehicle(581,-72.2342, -1575.5786, 2.6920, -113.0000,0,0,999999999);
MLcars[7] = CreateVehicle(581,-70.8378, -1574.3118, 2.6920, -113.0000,0,0,999999999);
MLcars[8] = CreateVehicle(601,-69.5559, -1553.4609, 2.6920, -184.0000,0,0,999999999);
MLcars[9] = CreateVehicle(580,-58.6222, -1565.9410, 2.2300, -184.0000,0,0,999999999);
MLcars[10] = CreateVehicle(482,-61.7763, -1562.1857, 2.5600, -184.0000,0,0,999999999);
MLcars[11] = CreateVehicle(490,-90.3683, -1560.5863, 2.5600, -47.0000,0,0,999999999);
MLcars[12] = CreateVehicle(490,-84.0720, -1547.8733, 2.5600, -171.0000,0,0,999999999);
MLcars[13] = CreateVehicle(470,-95.4170, -1595.2449, 2.6920, -62.0000,0,0,999999999);
MLcars[14] = CreateVehicle(528,-92.7300, -1580.2351, 2.6920, -136.0000,0,0,999999999);
pawn Код:
if(vid==MLcars[0]||vid==MLcars[1]||vid==MLcars[2]||vid==MLcars[3]||vid==MLcars[4]||vid==MLcars[5]||vid==MLcars[6]||vid==MLcars[7]||vid==MLcars[8]||vid==MLcars[9]||vid==MLcars[10]||vid==MLcars[11]||vid==MLcars[12]||vid==MLcars[13]||vid==MLcars[14])
{
if(PlayerInfo[playerid][pMember] == 30||PlayerInfo[playerid][pLeader] == 30) { }
else if(PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pMember] == 3||PlayerInfo[playerid][pMember] == 14||PlayerInfo[playerid][pMember] == 21)
{
RemovePlayerFromVehicle(playerid);
}
else
{
SendClientMessage(playerid, COLOR_RED, "{FF3D3D}[Erro]{FFFFFF} Vocк nгo й um Federal.");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid, 1);
}
}