Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- } case DIALOG_FVS: {
- if(!response) return 1;
- new Float: Pos[3];
- //new object, object3;
- GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
- if(PlayerInfo[playerid][pMember] == 1) {
- switch(listitem) {
- case 0: {
- if(PlayerInfo[playerid][pRank] < 2) return SCM(playerid, COLOR_GREY, "Nu poti spawna acest vehicul deoarece nu ai rank-ul potrivit");
- playerVehicle[playerid] = CreateVehicle(411, Pos[0], Pos[1], Pos[2], 90, 1, 1, 120);
- // object3 = CreateObject(19620,-2597.0762, -2638.4270, -5.3536, 0.0000, 0.0000, 0.0000);
- // AttachObjectToVehicle(object3, playerVehicle[playerid], 0.000000, 0.000000, 0.739999, 0.000000, 0.000000, 0.000000); //Object Model: 19620 |
- // new policecar = CreateObject(19327, -2597.0762, -2638.4270, -5.3536, -87.6999, 90.4001, -87.1805);
- // SetObjectMaterialText(policecar, "POLICE", 0, 50, "Arial", 25, 1, -16777216, 0, 1);
- // AttachObjectToVehicle(policecar, playerVehicle[playerid], 0.0, -1.9, 0.3, 270.0, 0.0, 0.0);
- } case 1: playerVehicle[playerid] = CreateVehicle(596, Pos[0], Pos[1], Pos[2], 90, 0, 1, 120);
- case 2: playerVehicle[playerid] = CreateVehicle(599, Pos[0], Pos[1], Pos[2], 90, 1, 0, 120);
- case 3: {
- if(PlayerInfo[playerid][pRank] < 3) return SCM(playerid, COLOR_GREY, "Nu poti spawna acest vehicul deoarece nu ai rank-ul potrivit");
- playerVehicle[playerid] = CreateVehicle(497, Pos[0], Pos[1], Pos[2], 90, 1, 0, 120);
- } case 4: playerVehicle[playerid] = CreateVehicle(523, Pos[0], Pos[1], Pos[2], 90, 1, 0, 120);
- }
- } if(PlayerInfo[playerid][pMember] == 2) {
- switch(listitem) {
- case 0: {
- if(PlayerInfo[playerid][pRank] < 2) return SCM(playerid, COLOR_GREY, "Nu poti spawna acest vehicul deoarece nu ai rank-ul potrivit");
- playerVehicle[playerid] = CreateVehicle(411, Pos[0], Pos[1], Pos[2], 90, 0, 0, 120);
- // object3 = CreateObject(19620,-2597.0762, -2638.4270, -5.3536, 0.0000, 0.0000, 0.0000);
- // AttachObjectToVehicle(object3, playerVehicle[playerid], 0.000000, 0.000000, 0.739999, 0.000000, 0.000000, 0.000000); //Object Model: 19620 |
- // new policecar = CreateObject(19327, -2597.0762, -2638.4270, -5.3536, -87.6999, 90.4001, -87.1805);
- // SetObjectMaterialText(policecar, "POLICE", 0, 50, "Arial", 25, 1, -16777216, 0, 1);
- // AttachObjectToVehicle(policecar, playerVehicle[playerid], 0.0, -1.9, 0.3, 270.0, 0.0, 0.0);
- } case 1: playerVehicle[playerid] = CreateVehicle(490, Pos[0], Pos[1], Pos[2], 90, 0, 0, 120);
- case 2: playerVehicle[playerid] = CreateVehicle(599, Pos[0], Pos[1], Pos[2], 90, 0, 0, 120);
- case 3: {
- if(PlayerInfo[playerid][pRank] < 3) return SCM(playerid, COLOR_GREY, "Nu poti spawna acest vehicul deoarece nu ai rank-ul potrivit");
- playerVehicle[playerid] = CreateVehicle(497, Pos[0], Pos[1], Pos[2], 90, 1, 0, 120);
- } case 4: playerVehicle[playerid] = CreateVehicle(523, Pos[0], Pos[1], Pos[2], 90, 0, 0, 120);
- }
- } if(PlayerInfo[playerid][pMember] == 3) {
- switch(listitem) {
- case 0: {
- if(PlayerInfo[playerid][pRank] < 2) return SCM(playerid, COLOR_GREY, "Nu poti spawna acest vehicul deoarece nu ai rank-ul potrivit");
- playerVehicle[playerid] = CreateVehicle(411, Pos[0], Pos[1], Pos[2], 90, 1, 1, 120);
- // object3 = CreateObject(19620,-2597.0762, -2638.4270, -5.3536, 0.0000, 0.0000, 0.0000);
- // AttachObjectToVehicle(object3, playerVehicle[playerid], 0.000000, 0.000000, 0.739999, 0.000000, 0.000000, 0.000000); //Object Model: 19620 |
- // new policecar = CreateObject(19327, -2597.0762, -2638.4270, -5.3536, -87.6999, 90.4001, -87.1805);
- // SetObjectMaterialText(policecar, "POLICE", 0, 50, "Arial", 25, 1, -16777216, 0, 1);
- // AttachObjectToVehicle(policecar, playerVehicle[playerid], 0.0, -1.9, 0.3, 270.0, 0.0, 0.0);
- } case 1: playerVehicle[playerid] = CreateVehicle(470, Pos[0], Pos[1], Pos[2], 90, 0, 0, 120);
- case 2: {
- if(PlayerInfo[playerid][pRank] < 5) return SCM(playerid, COLOR_GREY, "Nu poti spawna acest vehicul deoarece nu ai rank-ul potrivit");
- playerVehicle[playerid] = CreateVehicle(520, Pos[0], Pos[1], Pos[2], 90, 0, 0, 120);
- } case 3: {
- if(PlayerInfo[playerid][pRank] < 3) return SCM(playerid, COLOR_GREY, "Nu poti spawna acest vehicul deoarece nu ai rank-ul potrivit");
- playerVehicle[playerid] = CreateVehicle(425, Pos[0], Pos[1], Pos[2], 90, 0, 0, 120);
- }
- }
- } if(PlayerInfo[playerid][pMember] == 4) {
- switch(listitem) {
- case 0: {
- if(PlayerInfo[playerid][pRank] < 3) return SCM(playerid, COLOR_GREY, "Nu poti spawna acest vehicul deoarece nu ai rank-ul potrivit");
- playerVehicle[playerid] = CreateVehicle(560, Pos[0], Pos[1], Pos[2], 90, 1, 1, 120);
- } case 1: {
- if(PlayerInfo[playerid][pRank] < 2) return SCM(playerid, COLOR_GREY, "Nu poti spawna acest vehicul deoarece nu ai rank-ul potrivit");
- playerVehicle[playerid] = CreateVehicle(579, Pos[0], Pos[1], Pos[2], 90, 1, 1, 120);
- } case 2: playerVehicle[playerid] = CreateVehicle(567, Pos[0], Pos[1], Pos[2], 90, 1, 1, 120);
- }
- } if(PlayerInfo[playerid][pMember] == 5) {
- switch(listitem) {
- case 0: {
- if(PlayerInfo[playerid][pRank] < 3) return SCM(playerid, COLOR_GREY, "Nu poti spawna acest vehicul deoarece nu ai rank-ul potrivit");
- playerVehicle[playerid] = CreateVehicle(560, Pos[0], Pos[1], Pos[2], 90, 1, 1, 120);
- } case 1: {
- if(PlayerInfo[playerid][pRank] < 2) return SCM(playerid, COLOR_GREY, "Nu poti spawna acest vehicul deoarece nu ai rank-ul potrivit");
- playerVehicle[playerid] = CreateVehicle(579, Pos[0], Pos[1], Pos[2], 90, 1, 1, 120);
- } case 2: playerVehicle[playerid] = CreateVehicle(567, Pos[0], Pos[1], Pos[2], 90, 1, 1, 120);
- }
- } if(PlayerInfo[playerid][pMember] == 6) {
- switch(listitem) {
- case 0: {
- if(PlayerInfo[playerid][pRank] < 3) return SCM(playerid, COLOR_GREY, "Nu poti spawna acest vehicul deoarece nu ai rank-ul potrivit");
- playerVehicle[playerid] = CreateVehicle(560, Pos[0], Pos[1], Pos[2], 90, 1, 1, 120);
- } case 1: {
- if(PlayerInfo[playerid][pRank] < 2) return SCM(playerid, COLOR_GREY, "Nu poti spawna acest vehicul deoarece nu ai rank-ul potrivit");
- playerVehicle[playerid] = CreateVehicle(579, Pos[0], Pos[1], Pos[2], 90, 1, 1, 120);
- } case 2: playerVehicle[playerid] = CreateVehicle(567, Pos[0], Pos[1], Pos[2], 90, 1, 1, 120);
- }
- } if(PlayerInfo[playerid][pMember] == 7) {
- switch(listitem) {
- case 0: {
- if(PlayerInfo[playerid][pRank] < 2) return SCM(playerid, COLOR_GREY, "Nu poti spawna acest vehicul deoarece nu ai rank-ul potrivit");
- playerVehicle[playerid] = CreateVehicle(445, Pos[0], Pos[1], Pos[2], 90, 226, 226, 120);
- } case 1: playerVehicle[playerid] = CreateVehicle(560, Pos[0], Pos[1], Pos[2], 90, 226, 226, 120);
- case 2: playerVehicle[playerid] = CreateVehicle(487, Pos[0], Pos[1], Pos[2], 90, 226, 226, 120);
- }
- } if(PlayerInfo[playerid][pMember] == 8) {
- switch(listitem) {
- case 1: {
- if(PlayerInfo[playerid][pRank] < 2) return SCM(playerid, COLOR_GREY, "Nu poti spawna acest vehicul deoarece nu ai rank-ul potrivit");
- playerVehicle[playerid] = CreateVehicle(525, Pos[0], Pos[1], Pos[2], 90, 6, 6, 120);
- }
- }
- } if(PlayerInfo[playerid][pMember] == 9) {
- switch(listitem) {
- case 0: playerVehicle[playerid] = CreateVehicle(582, Pos[0], Pos[1], Pos[2], 90, 1, 1, 120);
- case 1: {
- if(PlayerInfo[playerid][pRank] < 2) return SCM(playerid, COLOR_GREY, "Nu poti spawna acest vehicul deoarece nu ai rank-ul potrivit");
- playerVehicle[playerid] = CreateVehicle(488, Pos[0], Pos[1], Pos[2], 90, 1, 1, 120);
- }
- }
- } if(PlayerInfo[playerid][pMember] == 10) {
- switch(listitem) {
- case 0: {
- if(PlayerInfo[playerid][pRank] < 3) return SCM(playerid, COLOR_GREY, "Nu poti spawna acest vehicul deoarece nu ai rank-ul potrivit");
- playerVehicle[playerid] = CreateVehicle(560, Pos[0], Pos[1], Pos[2], 90, 1, 1, 120);
- } case 1: {
- if(PlayerInfo[playerid][pRank] < 2) return SCM(playerid, COLOR_GREY, "Nu poti spawna acest vehicul deoarece nu ai rank-ul potrivit");
- playerVehicle[playerid] = CreateVehicle(579, Pos[0], Pos[1], Pos[2], 90, 1, 1, 120);
- } case 2: playerVehicle[playerid] = CreateVehicle(567, Pos[0], Pos[1], Pos[2], 90, 1, 1, 120);
- }
- } if(PlayerInfo[playerid][pMember] == 11) {
- switch(listitem) {
- case 0: playerVehicle[playerid] = CreateVehicle(402, Pos[0], Pos[1], Pos[2], 90, 129, 129, 120);
- case 1: {
- if(PlayerInfo[playerid][pRank] < 2) return SCM(playerid, COLOR_GREY, "Nu poti spawna acest vehicul deoarece nu ai rank-ul potrivit");
- playerVehicle[playerid] = CreateVehicle(487, Pos[0], Pos[1], Pos[2], 90, 129, 129, 120);
- } case 2: playerVehicle[playerid] = CreateVehicle(560, Pos[0], Pos[1], Pos[2], 90, 129, 129, 120);
- }
- } if(PlayerInfo[playerid][pMember] == 12) {
- switch(listitem) {
- case 0: {
- if(PlayerInfo[playerid][pRank] < 3) return SCM(playerid, COLOR_GREY, "Nu poti spawna acest vehicul deoarece nu ai rank-ul potrivit");
- playerVehicle[playerid] = CreateVehicle(560, Pos[0], Pos[1], Pos[2], 90, 6, 6, 120);
- // object = CreateObject(19308,0.00000, 0.00000, 0.00000,0.00000, 0.00000, 0.00000);
- // AttachObjectToVehicle(object, playerVehicle[playerid], 0.000000, -0.249999, 0.949999, 0.000000, 0.000001, 90.449951); //Object Model: 19620 |
- } case 1: {
- if(PlayerInfo[playerid][pRank] < 1) return SCM(playerid, COLOR_GREY, "Nu poti spawna acest vehicul deoarece nu ai rank-ul potrivit");
- playerVehicle[playerid] = CreateVehicle(438, Pos[0], Pos[1], Pos[2], 90, 6, 6, 120);
- } case 2: {
- if(PlayerInfo[playerid][pRank] < 1) return SCM(playerid, COLOR_GREY, "Nu poti spawna acest vehicul deoarece nu ai rank-ul potrivit");
- playerVehicle[playerid] = CreateVehicle(420, Pos[0], Pos[1], Pos[2], 90, 6, 6, 120);
- }
- }
- } if(PlayerInfo[playerid][pMember] == 13) {
- switch(listitem) {
- case 0: playerVehicle[playerid] = CreateVehicle(407, Pos[0], Pos[1], Pos[2], 90, 1, 2, 120);
- case 1: {
- if(PlayerInfo[playerid][pRank] < 2) return SCM(playerid, COLOR_GREY, "Nu poti spawna acest vehicul deoarece nu ai rank-ul potrivit");
- playerVehicle[playerid] = CreateVehicle(416, Pos[0], Pos[1], Pos[2], 90, 1, 2, 120);
- }
- }
- } if(PlayerInfo[playerid][pMember] == 14) {
- switch(listitem) {
- case 0: {
- if(PlayerInfo[playerid][pRank] < 2) return SCM(playerid, COLOR_GREY, "Nu poti spawna acest vehicul deoarece nu ai rank-ul potrivit");
- playerVehicle[playerid] = CreateVehicle(411, Pos[0], Pos[1], Pos[2], 90, 1, 1, 120);
- //object3 = CreateObject(19620,-2597.0762, -2638.4270, -5.3536, 0.0000, 0.0000, 0.0000);
- // AttachObjectToVehicle(object3, playerVehicle[playerid], 0.000000, 0.000000, 0.739999, 0.000000, 0.000000, 0.000000); //Object Model: 19620 |
- // new policecar = CreateObject(19327, -2597.0762, -2638.4270, -5.3536, -87.6999, 90.4001, -87.1805);
- // SetObjectMaterialText(policecar, "POLICE", 0, 50, "Arial", 25, 1, -16777216, 0, 1);
- // AttachObjectToVehicle(policecar, playerVehicle[playerid], 0.0, -1.9, 0.3, 270.0, 0.0, 0.0);
- } case 1: playerVehicle[playerid] = CreateVehicle(596, Pos[0], Pos[1], Pos[2], 90, 0, 1, 120);
- case 2: playerVehicle[playerid] = CreateVehicle(599, Pos[0], Pos[1], Pos[2], 90, 1, 0, 120);
- case 3: {
- if(PlayerInfo[playerid][pRank] < 3) return SCM(playerid, COLOR_GREY, "Nu poti spawna acest vehicul deoarece nu ai rank-ul potrivit");
- playerVehicle[playerid] = CreateVehicle(497, Pos[0], Pos[1], Pos[2], 90, 1, 0, 120);
- } case 4: playerVehicle[playerid] = CreateVehicle(523, Pos[0], Pos[1], Pos[2], 90, 1, 0, 120);
- }
- }
- SCM(playerid, COLOR_WHITE, "Ti-ai spawnat o masina tasteaza comanda /frv daca vrei sa o respawnezi");
- PutPlayerInVehicle(playerid, playerVehicle[playerid], 0);
- vehicleFactions[playerVehicle[playerid]] = PlayerInfo[playerid][pMember];
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement