24.11.2013, 14:07
Ok
Код:
CMD:tcar(playerid, params[]) { // Stuff return 1; } { if(strcmp(params,"1",true) == 0) { if(IsPlayerInAnyVehicle(playerid)) DestroyVehicle(GetPlayerVehicleID(playerid)); new Float:X,Float:Y,Float:Z,Float:Angle,VehID; GetPlayerPos(playerid,X,Y,Z); GetPlayerFacingAngle(playerid,Angle); VehID = CreateVehicle(560,X,Y,Z,Angle,1,-1,-1); AddVehicleComponent(VehID, 1028); AddVehicleComponent(VehID, 1030); AddVehicleComponent(VehID, 1031); AddVehicleComponent(VehID, 1138); AddVehicleComponent(VehID, 1140); AddVehicleComponent(VehID, 1170); AddVehicleComponent(VehID, 1028); AddVehicleComponent(VehID, 1030); AddVehicleComponent(VehID, 1031); AddVehicleComponent(VehID, 1138); AddVehicleComponent(VehID, 1140); AddVehicleComponent(VehID, 1170); AddVehicleComponent(VehID, 1080); AddVehicleComponent(VehID, 1086); AddVehicleComponent(VehID, 1087); AddVehicleComponent(VehID, 1010); ChangeVehiclePaintjob(VehID,1); LinkVehicleToInterior(VehID, GetPlayerInterior(playerid)); PutPlayerInVehicle(playerid,VehID,0); } //====================================================================== // Level 2 //====================================================================== else if(strcmp(params,"2",true) == 0) { if(IsPlayerInAnyVehicle(playerid)) DestroyVehicle(GetPlayerVehicleID(playerid)); new Float:X,Float:Y,Float:Z,Float:Angle,VehID; GetPlayerPos(playerid,X,Y,Z); GetPlayerFacingAngle(playerid,Angle); VehID = CreateVehicle(560,X,Y,Z,Angle,1,-1,-1); AddVehicleComponent(VehID, 1028); AddVehicleComponent(VehID, 1030); AddVehicleComponent(VehID, 1031); AddVehicleComponent(VehID, 1138); AddVehicleComponent(VehID, 1140); AddVehicleComponent(VehID, 1170); AddVehicleComponent(VehID, 1080); AddVehicleComponent(VehID, 1086); AddVehicleComponent(VehID, 1087); AddVehicleComponent(VehID, 1010); AddVehicleComponent(VehID, 1141); AddVehicleComponent(VehID, 1169); ChangeVehiclePaintjob(VehID,2); LinkVehicleToInterior(VehID, GetPlayerInterior(playerid)); PutPlayerInVehicle(playerid,VehID,0); } //====================================================================== // Level 3 //====================================================================== else if(strcmp(params,"3",true) == 0) { if(IsPlayerInAnyVehicle(playerid)) DestroyVehicle(GetPlayerVehicleID(playerid)); new Float:X,Float:Y,Float:Z,Float:Angle,VehID; GetPlayerPos(playerid,X,Y,Z); GetPlayerFacingAngle(playerid,Angle); VehID = CreateVehicle(559,X,Y,Z,Angle,1,-1,-1); AddVehicleComponent(VehID,1065); AddVehicleComponent(VehID,1067); AddVehicleComponent(VehID,1162); AddVehicleComponent(VehID,1010); AddVehicleComponent(VehID,1073); ChangeVehiclePaintjob(VehID,1); LinkVehicleToInterior(VehID, GetPlayerInterior(playerid)); PutPlayerInVehicle(playerid,VehID,0); } //====================================================================== // Level 4 //====================================================================== else if(strcmp(params,"4",true) == 0) { if(IsPlayerInAnyVehicle(playerid)) DestroyVehicle(GetPlayerVehicleID(playerid)); new Float:X,Float:Y,Float:Z,Float:Angle,VehID; GetPlayerPos(playerid,X,Y,Z); GetPlayerFacingAngle(playerid,Angle); VehID = CreateVehicle(565,X,Y,Z,Angle,1,-1,-1); AddVehicleComponent(VehID,1046); AddVehicleComponent(VehID,1049); AddVehicleComponent(VehID,1053); AddVehicleComponent(VehID,1010); AddVehicleComponent(VehID,1073); ChangeVehiclePaintjob(VehID,1); LinkVehicleToInterior(VehID, GetPlayerInterior(playerid)); PutPlayerInVehicle(playerid,VehID,0); } //====================================================================== // Level 5 //====================================================================== else if(strcmp(params,"5",true) == 0) { if(IsPlayerInAnyVehicle(playerid)) DestroyVehicle(GetPlayerVehicleID(playerid)); new Float:X,Float:Y,Float:Z,Float:Angle,VehID; GetPlayerPos(playerid,X,Y,Z); GetPlayerFacingAngle(playerid,Angle); VehID = CreateVehicle(558,X,Y,Z,Angle,1,-1,-1); AddVehicleComponent(VehID,1088); AddVehicleComponent(VehID,1092); AddVehicleComponent(VehID,1139); AddVehicleComponent(VehID,1010); AddVehicleComponent(VehID,1073); ChangeVehiclePaintjob(VehID,1); LinkVehicleToInterior(VehID, GetPlayerInterior(playerid)); PutPlayerInVehicle(playerid,VehID,0); } //====================================================================== // Level 6 //====================================================================== else if(strcmp(params,"6",true) == 0) { if(IsPlayerInAnyVehicle(playerid)) DestroyVehicle(GetPlayerVehicleID(playerid)); new Float:X,Float:Y,Float:Z,Float:Angle,VehID; GetPlayerPos(playerid,X,Y,Z); GetPlayerFacingAngle(playerid,Angle); VehID = CreateVehicle(560,X,Y,Z,Angle,1,-1,-1); AddVehicleComponent(VehID, 1087); AddVehicleComponent(VehID, 1010); AddVehicleComponent(VehID, 1138); AddVehicleComponent(VehID, 1170); AddVehicleComponent(VehID, 1030); AddVehicleComponent(VehID, 1028); AddVehicleComponent(VehID, 1170); AddVehicleComponent(VehID, 1031); AddVehicleComponent(VehID, 1080); AddVehicleComponent(VehID, 1140); AddVehicleComponent(VehID, 1086); AddVehicleComponent(VehID, 1028); AddVehicleComponent(VehID, 1030); AddVehicleComponent(VehID, 1031); AddVehicleComponent(VehID, 1140); AddVehicleComponent(VehID, 1138); ChangeVehiclePaintjob(VehID,0); LinkVehicleToInterior(VehID, GetPlayerInterior(playerid)); PutPlayerInVehicle(playerid,VehID,0); } //====================================================================== // Level 7 //====================================================================== else if(strcmp(params,"7",true) == 0) { if(IsPlayerInAnyVehicle(playerid)) DestroyVehicle(GetPlayerVehicleID(playerid)); new Float:X,Float:Y,Float:Z,Float:Angle,VehID; GetPlayerPos(playerid,X,Y,Z); GetPlayerFacingAngle(playerid,Angle); VehID = CreateVehicle(562,X,Y,Z,Angle,1,-1,-1); AddVehicleComponent(VehID,1034); AddVehicleComponent(VehID,1038); AddVehicleComponent(VehID,1147); AddVehicleComponent(VehID,1010); AddVehicleComponent(VehID,1073); ChangeVehiclePaintjob(VehID,1); LinkVehicleToInterior(VehID, GetPlayerInterior(playerid)); PutPlayerInVehicle(playerid,VehID,0); } //====================================================================== // Level 8 //====================================================================== else if(strcmp(params,"8",true) == 0) { if(IsPlayerInAnyVehicle(playerid)) DestroyVehicle(GetPlayerVehicleID(playerid)); new Float:X,Float:Y,Float:Z,Float:Angle,VehID; GetPlayerPos(playerid,X,Y,Z); GetPlayerFacingAngle(playerid,Angle); VehID = CreateVehicle(535,X,Y,Z,Angle,1,-1,-1); ChangeVehiclePaintjob(VehID,1); AddVehicleComponent(VehID,1109); AddVehicleComponent(VehID,1115); AddVehicleComponent(VehID,1117); AddVehicleComponent(VehID,1073); AddVehicleComponent(VehID,1010); AddVehicleComponent(VehID,1087); AddVehicleComponent(VehID,1114); AddVehicleComponent(VehID,1081); AddVehicleComponent(VehID,1119); AddVehicleComponent(VehID,1121); LinkVehicleToInterior(VehID, GetPlayerInterior(playerid)); PutPlayerInVehicle(playerid,VehID,0); } //====================================================================== // Level 9 //====================================================================== else if(strcmp(params,"9",true) == 0) { if(IsPlayerInAnyVehicle(playerid)) DestroyVehicle(GetPlayerVehicleID(playerid)); new Float:X,Float:Y,Float:Z,Float:Angle,VehID; GetPlayerPos(playerid,X,Y,Z); GetPlayerFacingAngle(playerid,Angle); VehID = CreateVehicle(558,X,Y,Z,Angle,1,-1,-1); AddVehicleComponent(VehID,1092); AddVehicleComponent(VehID,1166); AddVehicleComponent(VehID,1165); AddVehicleComponent(VehID,1090); AddVehicleComponent(VehID,1094); AddVehicleComponent(VehID,1010); AddVehicleComponent(VehID,1087); AddVehicleComponent(VehID,1163); AddVehicleComponent(VehID,1091); ChangeVehiclePaintjob(VehID,2); LinkVehicleToInterior(VehID, GetPlayerInterior(playerid)); PutPlayerInVehicle(playerid,VehID,0); } //====================================================================== // Level 10 //====================================================================== else if(strcmp(params,"10",true) == 0) { if(IsPlayerInAnyVehicle(playerid)) DestroyVehicle(GetPlayerVehicleID(playerid)); new Float:X,Float:Y,Float:Z,Float:Angle,VehID; GetPlayerPos(playerid,X,Y,Z); GetPlayerFacingAngle(playerid,Angle); VehID = CreateVehicle(562,X,Y,Z,Angle,1,-1,-1); AddVehicleComponent(VehID,1034); AddVehicleComponent(VehID,1038); AddVehicleComponent(VehID,1147); AddVehicleComponent(VehID,1010); AddVehicleComponent(VehID,1073); ChangeVehiclePaintjob(VehID,0); LinkVehicleToInterior(VehID, GetPlayerInterior(playerid)); PutPlayerInVehicle(playerid,VehID,0); } //====================================================================== else { SendClientMessage(playerid, COLOR_RED, "Correct Usage: /tcar [1-10]"); } return 1; }