09.03.2014, 22:56
(
Последний раз редактировалось RoberteDl; 13.03.2014 в 22:06.
)
Patrola
Trator
Kart
Code
pawn Код:
#include <a_samp>
#include <zcmd>
new Trat[ 13 ];
new Kar[ 5 ];
new objectid[ 34 ];
#define script "Legions4i20"
#define skyper "Robert-eDl"
#define Mapp "AlieN_"
#define skypea "adrianogamerbr"
public OnFilterScriptInit(){
printf("=========== By %s skype : %s", script, skyper);
printf("=========== By %s skype : %s", Mapp, skypea);
return 1;
}
public OnFilterScriptExit(){
return 1;
}
CMD:ctrator( playerid, params[] ){
new vehicleid = GetPlayerVehicleID(playerid);
new Float:ObPos[ 4 ];
GetPlayerPos( playerid, ObPos[0], ObPos[1], ObPos[2] );
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xFFFFFFAA, "Vocк nгo estб em um veнculo !");
Trat[ 0 ] = CreateObject(13649, ObPos[ 0 ], ObPos[ 2 ], ObPos[ 3 ], 0, 0, 0, 0.0);
Trat[ 1 ] = CreateObject(13649, ObPos[ 0 ], ObPos[ 2 ], ObPos[ 3 ], 0, 0, 0, 0.0);
Trat[ 2 ] = CreateObject(13649, ObPos[ 0 ], ObPos[ 2 ], ObPos[ 3 ], 0, 0, 0, 0.0);
Trat[ 3 ] = CreateObject(13649, ObPos[ 0 ], ObPos[ 2 ], ObPos[ 3 ], 0, 0, 0, 0.0);
Trat[ 4 ] = CreateObject(847, ObPos[ 0 ], ObPos[ 2 ], ObPos[ 3 ], 0, 0, 0, 0.0);
Trat[ 5 ] = CreateObject(847, ObPos[ 0 ], ObPos[ 2 ], ObPos[ 3 ], 0, 0, 0, 0.0);
Trat[ 6 ] = CreateObject(847, ObPos[ 0 ], ObPos[ 2 ], ObPos[ 3 ], 0, 0, 0, 0.0);
Trat[ 7 ] = CreateObject(847, ObPos[ 0 ], ObPos[ 2 ], ObPos[ 3 ], 0, 0, 0, 0.0);
Trat[ 8 ] = CreateObject(847, ObPos[ 0 ], ObPos[ 2 ], ObPos[ 3 ], 0, 0, 0, 0.0);
Trat[ 9 ] = CreateObject(847, ObPos[ 0 ], ObPos[ 2 ], ObPos[ 3 ], 0, 0, 0, 0.0);
Trat[ 10 ] = CreateObject(847, ObPos[ 0 ], ObPos[ 2 ], ObPos[ 3 ], 0, 0, 0, 0.0);
Trat[ 11 ] = CreateObject(847, ObPos[ 0 ], ObPos[ 2 ], ObPos[ 3 ], 0, 0, 0, 0.0);
Trat[ 12 ] = CreateObject(3862, ObPos[ 0 ], ObPos[ 2 ], ObPos[ 3 ], 0, 0, 0, 0.0);
AttachObjectToVehicle(Trat[ 0 ], vehicleid, -1.699998, 2.750015, 1.094999, 0.000000, -90.047920, 0.000000); //Object Model: 13649 |
AttachObjectToVehicle(Trat[ 1 ], vehicleid, 1.704998, 2.750015, 1.094999, 0.000000, -90.047966, 179.995651); //Object Model: 13649 |
AttachObjectToVehicle(Trat[ 2 ], vehicleid, -1.699497, -2.915019, 1.094999, 0.000000, -90.047988, 0.000000); //Object Model: 13649 |
AttachObjectToVehicle(Trat[ 3 ], vehicleid, 1.704497, -2.915018, 1.094998, 0.000000, 90.047966, 0.000000); //Object Model: 13649 |
AttachObjectToVehicle(Trat[ 4 ], vehicleid, 2.500009, 1.724998, 1.574998, 0.000000, 90.047966, 90.047943); //Object Model: 847 |
AttachObjectToVehicle(Trat[ 5 ], vehicleid, 2.115000, -1.889998, 1.574998, 0.000000, 90.047943, -90.047943); //Object Model: 847 |
AttachObjectToVehicle(Trat[ 6 ], vehicleid, 2.135001, 1.724998, 0.908999, 0.000000, 270.043975, -90.047966); //Object Model: 847 |
AttachObjectToVehicle(Trat[ 7 ], vehicleid, 2.485009, -1.889998, 0.908999, 0.000000, 270.043914, 90.047966); //Object Model: 847 |
AttachObjectToVehicle(Trat[ 8 ], vehicleid, -2.500009, -1.889998, 1.574998, 0.000000, 90.047920, -90.047943); //Object Model: 847 |
AttachObjectToVehicle(Trat[ 9 ], vehicleid, -2.135001, -1.889998, 0.909999, 0.000000, -90.047988, 90.047920); //Object Model: 847 |
AttachObjectToVehicle(Trat[ 10 ], vehicleid, -2.155001, 1.724998, 1.574998, 0.000000, 90.047966, 90.047966); //Object Model: 847 |
AttachObjectToVehicle(Trat[ 11 ], vehicleid, -2.515010, 1.724998, 0.904999, 0.000000, -90.047966, -90.047988); //Object Model: 847 |
AttachObjectToVehicle(Trat[ 12 ], vehicleid, 0.000000, -2.395007, 3.740038, 0.000000, 0.000000, 180.096023); //Object Model: 3862 |
return 1;
}
CMD:cpatrola( playerid, params[] ){
new vehicleid = GetPlayerVehicleID(playerid);
new Float:ObPos[ 4 ];
GetPlayerPos( playerid, ObPos[0], ObPos[1], ObPos[2] );
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xFFFFFFAA, "Vocк nгo estб em um veнculo !");
objectid[ 0 ] = CreateObject(1392, ObPos[ 0 ], ObPos[ 2 ], ObPos[ 3 ], 0, 0, 0, 0.0);
objectid[ 1 ] = CreateObject(1392, ObPos[ 0 ], ObPos[ 2 ], ObPos[ 3 ], 0, 0, 0, 0.0);
objectid[ 2 ] = CreateObject(1392, ObPos[ 0 ], ObPos[ 2 ], ObPos[ 3 ], 0, 0, 0, 0.0);
objectid[ 3 ] = CreateObject(2917, ObPos[ 0 ], ObPos[ 2 ], ObPos[ 3 ], 0, 0, 0, 0.0);
objectid[ 4 ] = CreateObject(2917, ObPos[ 0 ], ObPos[ 2 ], ObPos[ 3 ], 0, 0, 0, 0.0);
objectid[ 5 ] = CreateObject(2917, ObPos[ 0 ], ObPos[ 2 ], ObPos[ 3 ], 0, 0, 0, 0.0);
objectid[ 6 ] = CreateObject(2917, ObPos[ 0 ], ObPos[ 2 ], ObPos[ 3 ], 0, 0, 0, 0.0);
objectid[ 7 ] = CreateObject(958, ObPos[ 0 ], ObPos[ 2 ], ObPos[ 3 ], 0, 0, 0, 0.0);
objectid[ 8 ] = CreateObject(958, ObPos[ 0 ], ObPos[ 2 ], ObPos[ 3 ], 0, 0, 0, 0.0);
objectid[ 9 ] = CreateObject(2917, ObPos[ 0 ], ObPos[ 2 ], ObPos[ 3 ], 0, 0, 0, 0.0);
objectid[ 10 ] = CreateObject(2917, ObPos[ 0 ], ObPos[ 2 ], ObPos[ 3 ], 0, 0, 0, 0.0);
objectid[ 11 ] = CreateObject(2917, ObPos[ 0 ], ObPos[ 2 ], ObPos[ 3 ], 0, 0, 0, 0.0);
objectid[ 12 ] = CreateObject(2917, ObPos[ 0 ], ObPos[ 2 ], ObPos[ 3 ], 0, 0, 0, 0.0);
objectid[ 13 ] = CreateObject(2917, ObPos[ 0 ], ObPos[ 2 ], ObPos[ 3 ], 0, 0, 0, 0.0);
objectid[ 14 ] = CreateObject(2917, ObPos[ 0 ], ObPos[ 2 ], ObPos[ 3 ], 0, 0, 0, 0.0);
objectid[ 15 ] = CreateObject(1392, ObPos[ 0 ], ObPos[ 2 ], ObPos[ 3 ], 0, 0, 0, 0.0);
objectid[ 16 ] = CreateObject(1392, ObPos[ 0 ], ObPos[ 2 ], ObPos[ 3 ], 0, 0, 0, 0.0);
objectid[ 17 ] = CreateObject(1392, ObPos[ 0 ], ObPos[ 2 ], ObPos[ 3 ], 0, 0, 0, 0.0);
objectid[ 18 ] = CreateObject(1079, ObPos[ 0 ], ObPos[ 2 ], ObPos[ 3 ], 0, 0, 0, 0.0);
objectid[ 19 ] = CreateObject(1079, ObPos[ 0 ], ObPos[ 2 ], ObPos[ 3 ], 0, 0, 0, 0.0);
objectid[ 20 ] = CreateObject(1079, ObPos[ 0 ], ObPos[ 2 ], ObPos[ 3 ], 0, 0, 0, 0.0);
objectid[ 21 ] = CreateObject(1079, ObPos[ 0 ], ObPos[ 2 ], ObPos[ 3 ], 0, 0, 0, 0.0);
objectid[ 22 ] = CreateObject(1079, ObPos[ 0 ], ObPos[ 2 ], ObPos[ 3 ], 0, 0, 0, 0.0);
objectid[ 23 ] = CreateObject(1079, ObPos[ 0 ], ObPos[ 2 ], ObPos[ 3 ], 0, 0, 0, 0.0);
objectid[ 24 ] = CreateObject(2960, ObPos[ 0 ], ObPos[ 2 ], ObPos[ 3 ], 0, 0, 0, 0.0);
objectid[ 25 ] = CreateObject(2960, ObPos[ 0 ], ObPos[ 2 ], ObPos[ 3 ], 0, 0, 0, 0.0);
objectid[ 26 ] = CreateObject(2960, ObPos[ 0 ], ObPos[ 2 ], ObPos[ 3 ], 0, 0, 0, 0.0);
objectid[ 27 ] = CreateObject(2960, ObPos[ 0 ], ObPos[ 2 ], ObPos[ 3 ], 0, 0, 0, 0.0);
objectid[ 28 ] = CreateObject(2960, ObPos[ 0 ], ObPos[ 2 ], ObPos[ 3 ], 0, 0, 0, 0.0);
objectid[ 29 ] = CreateObject(2960, ObPos[ 0 ], ObPos[ 2 ], ObPos[ 3 ], 0, 0, 0, 0.0);
objectid[ 30 ] = CreateObject(2960, ObPos[ 0 ], ObPos[ 2 ], ObPos[ 3 ], 0, 0, 0, 0.0);
objectid[ 31 ] = CreateObject(2960, ObPos[ 0 ], ObPos[ 2 ], ObPos[ 3 ], 0, 0, 0, 0.0);
objectid[ 32 ] = CreateObject(1392, ObPos[ 0 ], ObPos[ 2 ], ObPos[ 3 ], 0, 0, 0, 0.0);
AttachObjectToVehicle(objectid[ 0 ], vehicleid, -0.000000, 1.804998, 0.820498, 0.000000, -90.047966, -90.047943); //Object Model: 1392 | alien_
AttachObjectToVehicle(objectid[ 1 ], vehicleid, 1.024999, 1.157498, 0.838001, 0.000000, 90.047920, 0.000000); //Object Model: 1392 | alien_
AttachObjectToVehicle(objectid[ 2 ], vehicleid, -1.005499, 1.157498, 0.820501, 0.000000, -90.047943, 0.000000); //Object Model: 1392 | alien_
AttachObjectToVehicle(objectid[ 3 ], vehicleid, 0.589999, -1.069999, 1.624998, 0.000000, 0.000000, 90.047897); //Object Model: 2917 | alien_
AttachObjectToVehicle(objectid[ 4 ], vehicleid, -0.549999, -1.070498, 1.626498, 0.000000, 0.000000, 90.047943); //Object Model: 2917 | alien_
AttachObjectToVehicle(objectid[ 5 ], vehicleid, -0.549999, -1.070999, -0.499999, 0.000000, 0.000000, 90.048080); //Object Model: 2917 | alien_
AttachObjectToVehicle(objectid[ 6 ], vehicleid, 0.589999, -1.069999, -0.499999, 0.000000, 0.000000, 90.039108); //Object Model: 2917 | alien_
AttachObjectToVehicle(objectid[ 7 ], vehicleid, 0.684999, -1.164999, 0.734999, 0.000000, 0.000000, -90.047874); //Object Model: 958 | alien_
AttachObjectToVehicle(objectid[ 8 ], vehicleid, -0.689999, -1.159999, 0.729999, 0.000000, 0.000000, 89.043197); //Object Model: 958 | alien_
AttachObjectToVehicle(objectid[ 9 ], vehicleid, -0.000000, 4.065045, 0.799999, 0.000000, 0.000000, 90.047943); //Object Model: 2917 | alien_
AttachObjectToVehicle(objectid[ 10 ], vehicleid, 0.000000, 7.563626, 0.749999, 0.000000, 0.000000, 90.048034); //Object Model: 2917 | alien_
AttachObjectToVehicle(objectid[ 11 ], vehicleid, 0.000000, 11.035204, 0.749999, 0.000000, 0.000000, 90.047966); //Object Model: 2917 | alien_
AttachObjectToVehicle(objectid[ 12 ], vehicleid, 0.000000, 12.480237, 0.000000, -89.947463, -0.000000, 0.000000); //Object Model: 2917 | alien_
AttachObjectToVehicle(objectid[ 13 ], vehicleid, 0.319999, 4.070045, 0.749999, 0.000000, 0.000000, 94.972480); //Object Model: 2917 | alien_
AttachObjectToVehicle(objectid[ 14 ], vehicleid, -0.319999, 4.075045, 0.749999, 0.000000, -0.000000, 86.228935); //Object Model: 2917 | alien_
AttachObjectToVehicle(objectid[ 15 ], vehicleid, 1.024496, 1.169999, 3.215026, 0.000000, 90.047966, 0.022497); //Object Model: 1392 | alien_
AttachObjectToVehicle(objectid[ 16 ], vehicleid, -1.004999, 1.189999, 3.220026, 0.000000, 90.047966, 180.096389); //Object Model: 1392 | alien_
AttachObjectToVehicle(objectid[ 17 ], vehicleid, -0.000000, 1.814998, 3.220026, 0.000000, 90.047943, 90.047966); //Object Model: 1392 | alien_
AttachObjectToVehicle(objectid[ 18 ], vehicleid, 1.454998, 0.719999, -0.140000, 0.000000, 0.000000, 0.000000); //Object Model: 1079 | alien_
AttachObjectToVehicle(objectid[ 19 ], vehicleid, 1.464998, 1.739998, -0.140000, 0.000000, 0.000000, 0.000000); //Object Model: 1079 | alien_
AttachObjectToVehicle(objectid[ 20 ], vehicleid, 2.285004, 12.785244, -0.299999, 0.000000, 0.000000, 0.000000); //Object Model: 1079 | alien_
AttachObjectToVehicle(objectid[ 21 ], vehicleid, -1.444998, 0.704999, -0.140000, 0.000000, 0.000000, 179.995529); //Object Model: 1079 | alien_
AttachObjectToVehicle(objectid[ 22 ], vehicleid, -1.444998, 1.759998, -0.140000, 0.000000, 0.000000, 179.995773); //Object Model: 1079 | alien_
AttachObjectToVehicle(objectid[ 23 ], vehicleid, -2.297504, 12.780244, -0.299999, 0.000000, 0.000000, 179.995651); //Object Model: 1079 | alien_
AttachObjectToVehicle(objectid[ 24 ], vehicleid, -0.409999, 10.050182, 1.064999, -89.947456, -0.000000, 90.047966); //Object Model: 2960 | alien_
AttachObjectToVehicle(objectid[ 25 ], vehicleid, 0.404999, 10.050182, 1.069999, -89.947486, -0.000000, -90.047943); //Object Model: 2960 | alien_
AttachObjectToVehicle(objectid[ 26 ], vehicleid, -0.399999, 5.440076, 1.069999, -89.947471, 0.000000, 90.047943); //Object Model: 2960 | alien_
AttachObjectToVehicle(objectid[ 27 ], vehicleid, 0.404999, 5.455077, 1.069999, -89.947463, 0.000000, -90.047943); //Object Model: 2960 | alien_
AttachObjectToVehicle(objectid[ 28 ], vehicleid, 0.000000, 5.945088, 0.309999, -95.474937, 0.000000, -10.050001); //Object Model: 2960 | alien_
AttachObjectToVehicle(objectid[ 29 ], vehicleid, 0.000000, 5.970088, -0.079999, -76.379989, 0.000000, -10.050001); //Object Model: 2960 | alien_
AttachObjectToVehicle(objectid[ 30 ], vehicleid, 0.000000, 6.080091, -0.374999, -67.335014, 0.000000, -10.050001); //Object Model: 2960 | alien_
AttachObjectToVehicle(objectid[ 31 ], vehicleid, 0.000000, 6.210094, -0.594999, -56.280014, 0.000000, -10.050001); //Object Model: 2960 | alien_
AttachObjectToVehicle(objectid[ 32 ], vehicleid, 0.000000, 0.534999, 3.220026, 0.000000, 90.047943, -90.047920); //Object Model: 1392 | alien_
return 1;
}
CMD:ckart( playerid, params[] ){
new vehicleid = GetPlayerVehicleID(playerid);
new Float:ObPos[ 4 ];
GetPlayerPos( playerid, ObPos[0], ObPos[1], ObPos[2] );
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xFFFFFFAA, "Vocк nгo estб em um veнculo !");
Kar[ 0 ] = CreateObject(1163, ObPos[ 0 ], ObPos[ 2 ], ObPos[ 3 ], 0, 0, 0, 0.0);
Kar[ 1 ] = CreateObject(1164, ObPos[ 0 ], ObPos[ 2 ], ObPos[ 3 ], 0, 0, 0, 0.0);
Kar[ 2 ] = CreateObject(1116, ObPos[ 0 ], ObPos[ 2 ], ObPos[ 3 ], 0, 0, 0, 0.0);
Kar[ 3 ] = CreateObject(1116, ObPos[ 0 ], ObPos[ 2 ], ObPos[ 3 ], 0, 0, 0, 0.0);
AttachObjectToVehicle(Kar[ 0 ], vehicleid, 0.000000, -0.849999, 0.329999, 0.000000, 0.000000, 0.000000); //Object Model: 1163 |
AttachObjectToVehicle(Kar[ 1 ], vehicleid, 0.000000, 0.824999, -0.100000, 0.000000, 0.000000, 0.000000); //Object Model: 1164 |
AttachObjectToVehicle(Kar[ 2 ], vehicleid, 0.000000, 0.979999, -0.384999, 25.124994, -0.000000, 0.000000); //Object Model: 1116 |
AttachObjectToVehicle(Kar[ 3 ], vehicleid, 0.000000, -0.759999, -0.229999, 0.000000, 0.000000, 0.000000); //Object Model: 1116 |
return 1;
}
public OnPlayerExitVehicle(playerid, vehicleid)
{
for(new i; i < 13; i++)
{
DestroyObject( Trat[ i ]);
}
for(new a; a < 34; a++)
{
DestroyObject( objectid[ a ]);
}
for(new b; b < 5; b++)
{
DestroyObject( Trat[ b ]);
}
return 1;
}
Код:
[FS]Super Carros Para Samp Feito por : Legions4i20 & AlieN_Skype's : Robert-4i20 & adrianogamerbr