08.03.2011, 05:57
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { new name[24]; new string[120]; new pname[MAX_PLAYER_NAME]; // if(dialogid == JFS_OWNA) // DIALOG /TELEPORTES ! { if(response) { if(listitem == 0) { ShowPlayerDialog(playerid, JFS_OWNA+1, DIALOG_STYLE_LIST, "{33CCFF}Teleportes - Drift - By: Jonathan_Feitosa", "{FFFF00}Drift 1\n{FFFF00}Drift 2\n{FFFF00}Drift 3\n{FFFF00}Drift 4\n{FFFF00}Drift 5\n{FFFF00}Drift 6\n{FFFF00}Drift 7\n{FFFF00}Drift 8\n{FFFF00}Drift 9\n{FFFF00}Drift 10\n{FFFF00}Drift 11\n{FFFF00}Drift 12\n{FFFF00}Drift 13\n{FFFF00}Drift 14", "Ir Drift", "Cancelar"); } else if(listitem == 1) { ShowPlayerDialog(playerid, JFS_OWNA+2, DIALOG_STYLE_LIST, "{33CCFF}Teleportes - DM - By: Jonathan_Feitosa", "{33AA33}Jetpack DM\n{33AA33}Minigum DM\n{33AA33}Bazuca DM\n{33AA33}Morro Dos Macacos\n{33AA33}Sniper DM\n{33AA33}DM 1\n{33AA33}DM 2\n{33AA33}DM 3\n{33AA33}DM 4\n{33AA33}DM 5\n{33AA33}DM 6\n{33AA33}DM 7\n{33AA33}DM 8\n{33AA33}DM 9\n{33AA33}DM 10\n{33AA33}DM 11", "Ir DM", "Cancelar"); } else if(listitem == 2) { ShowPlayerDialog(playerid, JFS_OWNA+3, DIALOG_STYLE_LIST, "{33CCFF}Teleportes - Corrida - By: Jonathan_Feitosa", "{0000FF}Corrida Forб do Comum\n{0000FF}Corrida 1\n{0000FF}Racha 1\n{0000FF}Racha 2\n{0000FF}Racha 3\n{0000FF}Racha 4", "Ir Corrida", "Cancelar"); } } } if(dialogid == JFS_OWNA+1) // Teleportes DRIFTS { if(response) { if(listitem == 0) { GetPlayerName(playerid, pname, MAX_PLAYER_NAME); format(string, sizeof(string), "%s Foi Para o Drift 1 Usando - (/teleportes)", pname); SendClientMessageToAll(0xFFFFFFAA, string); SetPlayerInterior(playerid,0); SetPlayerPos(playerid,-2129.5024,917.8298,79.8516); SetPlayerFacingAngle(playerid,266.3490); SetPlayerArmour(playerid, 100.0); SetPlayerHealth(playerid, 100.0); new drift1[3000]; strins(drift1,"\n",strlen(drift1)); strins(drift1,"{33CCFF}PISTA OFICIAL!\n",strlen(drift1)); strins(drift1,"{7491F6}Nнvel: Mйdio\n",strlen(drift1)); strins(drift1,"\n",strlen(drift1)); ShowPlayerDialog(playerid,8441, DIALOG_STYLE_MSGBOX, "{33CCFF} ----------- ATENЗГO ----------- ",drift1, "Curtir", ""); } else if(listitem == 1) { GetPlayerName(playerid, pname, MAX_PLAYER_NAME); format(string, sizeof(string), "%s Foi Para o Drift 2 Usando - (/teleportes)", pname); SendClientMessageToAll(0xFFFFFFAA, string); SetPlayerInterior(playerid,0); SetPlayerPos(playerid,-2746.3472,428.3672,4.3281); SetPlayerFacingAngle(playerid,181.4583); SetPlayerArmour(playerid, 100.0); SetPlayerHealth(playerid, 100.0); new drift2[3000]; strins(drift2,"\n",strlen(drift2)); strins(drift2,"{33CCFF}PISTA OFICIAL!\n",strlen(drift2)); strins(drift2,"{7491F6}Nнvel: Fбcil\n",strlen(drift2)); strins(drift2,"\n",strlen(drift2)); ShowPlayerDialog(playerid,8442, DIALOG_STYLE_MSGBOX, "{33CCFF} ----------- ATENЗГO ----------- ",drift2, "Curtir", ""); } else if(listitem == 2) { GetPlayerName(playerid, pname, MAX_PLAYER_NAME); format(string, sizeof(string), "%s Foi Para o Drift 3 Usando - (/teleportes)", pname); SendClientMessageToAll(0xFFFFFFAA, string); SetPlayerInterior(playerid,0); SetPlayerPos(playerid,-1776.4053,1302.7349,50.4453); SetPlayerHealth(playerid, 100.0); new drift3[3000]; strins(drift3,"\n",strlen(drift3)); strins(drift3,"{33CCFF}PISTA OFICIAL!\n",strlen(drift3)); strins(drift3,"{7491F6}Nнvel: Profissional\n",strlen(drift3)); strins(drift3,"\n",strlen(drift3)); ShowPlayerDialog(playerid,8443, DIALOG_STYLE_MSGBOX, "{33CCFF} ----------- ATENЗГO ----------- ",drift3, "Curtir", ""); } else if(listitem == 3) // APARTIR DAKI { GetPlayerName(playerid, pname, MAX_PLAYER_NAME); format(string, sizeof(string), "%s Foi Para o Drift 4 Usando - (/teleportes)", pname); SendClientMessageToAll(0xFFFFFFAA, string); SetPlayerPos(playerid,-325.1331,1533.0276,75.3594); SetPlayerInterior(playerid,0); new drift4[3000]; strins(drift4,"\n",strlen(drift4)); strins(drift4,"{33CCFF}PISTA OFICIAL!\n",strlen(drift4)); strins(drift4,"{7491F6}Nнvel: Mйdio\n",strlen(drift4)); strins(drift4,"\n",strlen(drift4)); ShowPlayerDialog(playerid,8444, DIALOG_STYLE_MSGBOX, "{33CCFF} ----------- ATENЗГO ----------- ",drift4, "Curtir", ""); } else if(listitem == 4) { GetPlayerName(playerid, pname, MAX_PLAYER_NAME); format(string, sizeof(string), "%s Foi Para o Drift 5 Usando - (/teleportes)", pname); SendClientMessageToAll(0xFFFFFFAA, string); SetPlayerPos(playerid,2315.8945,1401.4497,42.8203); SetPlayerInterior(playerid,0); new drift5[3000]; strins(drift5,"\n",strlen(drift5)); strins(drift5,"{33CCFF}PISTA OFICIAL!\n",strlen(drift5)); strins(drift5,"{7491F6}Nнvel: Fбcil\n",strlen(drift5)); strins(drift5,"\n",strlen(drift5)); ShowPlayerDialog(playerid,8445, DIALOG_STYLE_MSGBOX, "{33CCFF} ----------- ATENЗГO ----------- ",drift5, "Curtir", ""); } else if(listitem == 5) { new drift6[3000]; strins(drift6,"\n",strlen(drift6)); strins(drift6,"{33CCFF}PISTA OFICIAL!\n",strlen(drift6)); strins(drift6,"{7491F6}Nнvel: Profissional\n",strlen(drift6)); strins(drift6,"\n",strlen(drift6)); ShowPlayerDialog(playerid,8446, DIALOG_STYLE_MSGBOX, "{33CCFF} ----------- ATENЗГO ----------- ",drift6, "Curtir", ""); GetPlayerName(playerid, pname, MAX_PLAYER_NAME); format(string, sizeof(string), "%s Foi Para o Drift 6 Usando - (/teleportes)", pname); SendClientMessageToAll(0xFFFFFFAA, string); SetPlayerPos(playerid,2221.7561,1962.5647,31.7797); SetPlayerInterior(playerid,0); } else if(listitem == 6) { new drift7[3000]; strins(drift7,"\n",strlen(drift7)); strins(drift7,"{33CCFF}PISTA OFICIAL!\n",strlen(drift7)); strins(drift7,"{7491F6}Nнvel: Fбcil\n",strlen(drift7)); strins(drift7,"\n",strlen(drift7)); ShowPlayerDialog(playerid,8447, DIALOG_STYLE_MSGBOX, "{33CCFF} ----------- ATENЗГO ----------- ",drift7, "Curtir", ""); GetPlayerName(playerid, pname, MAX_PLAYER_NAME); format(string, sizeof(string), "%s Foi Para o Drift 7 Usando - (/teleportes)", pname); SendClientMessageToAll(0xFFFFFFAA, string); SetPlayerPos(playerid,1148.0913,2179.3987,10.8203); SetPlayerInterior(playerid,0); } else if(listitem == 7) { new drift8[3000]; strins(drift8,"\n",strlen(drift8)); strins(drift8,"{33CCFF}PISTA OFICIAL!\n",strlen(drift8)); strins(drift8,"{7491F6}Nнvel: Mйdio\n",strlen(drift8)); strins(drift8,"\n",strlen(drift8)); ShowPlayerDialog(playerid,8448, DIALOG_STYLE_MSGBOX, "{33CCFF} ----------- ATENЗГO ----------- ",drift8, "Curtir", ""); GetPlayerName(playerid, pname, MAX_PLAYER_NAME); format(string, sizeof(string), "%s Foi Para o Drift 8 Usando - (/teleportes)", pname); SendClientMessageToAll(0xFFFFFFAA, string); SetPlayerPos(playerid,-2412.5579,-604.6044,132.5625); SetPlayerInterior(playerid,0); } else if(listitem == 8) { new drift9[3000]; strins(drift9,"\n",strlen(drift9)); strins(drift9,"{33CCFF}PISTA OFICIAL!\n",strlen(drift9)); strins(drift9,"{7491F6}Nнvel: Mйdio\n",strlen(drift9)); strins(drift9,"\n",strlen(drift9)); ShowPlayerDialog(playerid,8449, DIALOG_STYLE_MSGBOX, "{33CCFF} ----------- ATENЗГO ----------- ",drift9, "Curtir", ""); GetPlayerName(playerid, pname, MAX_PLAYER_NAME); format(string, sizeof(string), "%s Foi Para o Drift 9 Usando - (/teleportes)", pname); SendClientMessageToAll(0xFFFFFFAA, string); SetPlayerPos(playerid,-715.3802,-72.8116,69.0316); SetPlayerInterior(playerid,0); } // daki else if(listitem == 9) { new drift10[3000]; strins(drift10,"\n",strlen(drift10)); strins(drift10,"{33CCFF}PISTA OFICIAL!\n",strlen(drift10)); strins(drift10,"{7491F6}Nнvel: Mйdio\n",strlen(drift10)); strins(drift10,"\n",strlen(drift10)); ShowPlayerDialog(playerid,8450, DIALOG_STYLE_MSGBOX, "{33CCFF} ----------- ATENЗГO ----------- ",drift10, "Curtir", ""); GetPlayerName(playerid, pname, MAX_PLAYER_NAME); format(string, sizeof(string), "%s Foi Para o Drift 10 Usando - (/teleportes)", pname); SendClientMessageToAll(0xFFFFFFAA, string); SetPlayerPos(playerid, 1886.9543,1813.2212,18.9339); SetPlayerInterior(playerid,0); } else if(listitem == 10) { new drift11[3000]; strins(drift11,"\n",strlen(drift11)); strins(drift11,"{33CCFF}PISTA OFICIAL!\n",strlen(drift11)); strins(drift11,"{7491F6}Nнvel: Profissional\n",strlen(drift11)); strins(drift11,"\n",strlen(drift11)); ShowPlayerDialog(playerid,8451, DIALOG_STYLE_MSGBOX, "{33CCFF} ----------- ATENЗГO ----------- ",drift11, "Curtir", ""); GetPlayerName(playerid, pname, MAX_PLAYER_NAME); format(string, sizeof(string), "%s Foi Para o Drift 11 Usando - (/teleportes)", pname); SendClientMessageToAll(0xFFFFFFAA, string); SetPlayerPos(playerid, -766.7427,-1730.1228,95.9759); SetPlayerInterior(playerid,0); } else if(listitem == 11) { new drift12[3000]; strins(drift12,"\n",strlen(drift12)); strins(drift12,"{33CCFF}PISTA OFICIAL!\n",strlen(drift12)); strins(drift12,"{7491F6}Nнvel: Profissional\n",strlen(drift12)); strins(drift12,"\n",strlen(drift12)); ShowPlayerDialog(playerid,8452, DIALOG_STYLE_MSGBOX, "{33CCFF} ----------- ATENЗГO ----------- ",drift12, "Curtir", ""); GetPlayerName(playerid, pname, MAX_PLAYER_NAME); format(string, sizeof(string), "%s Foi Para o Drift 12 Usando - (/teleportes)", pname); SendClientMessageToAll(0xFFFFFFAA, string); SetPlayerPos(playerid, 1978.7637,2238.7798,26.8968); SetPlayerInterior(playerid,0); } else if(listitem == 12) { new drift13[3000]; strins(drift13,"\n",strlen(drift13)); strins(drift13,"{33CCFF}PISTA OFICIAL!\n",strlen(drift13)); strins(drift13,"{7491F6}Nнvel: Fбcil\n",strlen(drift13)); strins(drift13,"\n",strlen(drift13)); ShowPlayerDialog(playerid,8453, DIALOG_STYLE_MSGBOX, "{33CCFF} ----------- ATENЗГO ----------- ",drift13, "Curtir", ""); GetPlayerName(playerid, pname, MAX_PLAYER_NAME); format(string, sizeof(string), "%s Foi Para o Drift 13 Usando - (/teleportes)", pname); SendClientMessageToAll(0xFFFFFFAA, string); SetPlayerPos(playerid, 2620.0789,-2406.7498,13.1992); SetPlayerInterior(playerid,0); } else if(listitem == 13) { new drift14[3000]; strins(drift14,"\n",strlen(drift14)); strins(drift14,"{33CCFF}PISTA OFICIAL!\n",strlen(drift14)); strins(drift14,"{7491F6}Nнvel: Profissional\n",strlen(drift14)); strins(drift14,"\n",strlen(drift14)); ShowPlayerDialog(playerid,8454, DIALOG_STYLE_MSGBOX, "{33CCFF} ----------- ATENЗГO ----------- ",drift14, "Curtir", ""); GetPlayerName(playerid, pname, MAX_PLAYER_NAME); format(string, sizeof(string), "%s Foi Para o Drift 14 Usando - (/teleportes)", pname); SendClientMessageToAll(0xFFFFFFAA, string); SetPlayerPos(playerid, -1257.1068,-1355.8252,119.8318); SetPlayerInterior(playerid,0); } } } if(dialogid == JFS_OWNA+2) // DM { if(response) { if(listitem == 0) { GetPlayerName(playerid, pname, MAX_PLAYER_NAME); format(string, sizeof(string), "%s Foi Para o Jetpack DM Usando - (/teleportes)", pname); SendClientMessageToAll(0xFFFFFFAA, string); ResetPlayerWeapons(playerid); SetPlayerInterior(playerid,0); SetPlayerPos(playerid,564.1640,897.5873,-43.0286); SetPlayerFacingAngle(playerid,4.1726); SetPlayerArmour(playerid, 100.0); SetPlayerHealth(playerid, 100.0); SetPlayerSpecialAction(playerid, 2); GivePlayerWeapon(playerid,32,9999); } else if(listitem == 1) { GetPlayerName(playerid, pname, MAX_PLAYER_NAME); format(string, sizeof(string), "%s foi para o Minigum DM Usando - (/teleportes)", pname); SendClientMessageToAll(0xFFFFFFAA, string); ResetPlayerWeapons(playerid); SetPlayerInterior(playerid,0); SetPlayerPos(playerid,1250.7996,-2023.3958,59.6829); SetPlayerFacingAngle(playerid,4.1726); SetPlayerArmour(playerid, 100.0); SetPlayerHealth(playerid, 100.0); GivePlayerWeapon(playerid,38,9999); } else if(listitem == 2) { GetPlayerName(playerid, pname, MAX_PLAYER_NAME); format(string, sizeof(string), "%s Foi Para o Bazuca DM Usando - (/teleportes)", pname); SendClientMessageToAll(0xFFFFFFAA, string); ResetPlayerWeapons(playerid); SetPlayerInterior(playerid,0); SetPlayerPos(playerid,2341.2864,-523.2618,122.1752); SetPlayerFacingAngle(playerid,167.6480); SetPlayerArmour(playerid, 100.0); SetPlayerHealth(playerid, 100.0); GivePlayerWeapon(playerid,35,9999); } else if(listitem == 3) { GetPlayerName(playerid, pname, MAX_PLAYER_NAME); format(string, sizeof(string), "%s Foi Para o Morro dos Macacos Usando - (/teleportes)", pname); SendClientMessageToAll(0xFFFFFFAA, string); ResetPlayerWeapons(playerid); SetPlayerInterior(playerid,0); SetPlayerPos(playerid,2599.5396,-1063.9731,69.5799); SetPlayerFacingAngle(playerid,357.2398); SetPlayerArmour(playerid, 100.0); SetPlayerHealth(playerid, 100.0); GivePlayerWeapon(playerid,32,9999); GivePlayerWeapon(playerid,31,9999); GivePlayerWeapon(playerid,40,30); GivePlayerWeapon(playerid,24,9999); } else if(listitem == 4) { GetPlayerName(playerid, pname, MAX_PLAYER_NAME); format(string, sizeof(string), "%s Foi Para o DM De Sniper Criado Por Jonathan Feitosa Usando - (/teleportes)", pname); SendClientMessageToAll(0xFFFFFFAA, string); ResetPlayerWeapons(playerid); SetPlayerInterior(playerid,0); rand = random(sizeof(gSpawnsDm)); SetPlayerPos(playerid,gSpawnsDm[rand][0],gSpawnsDm[rand][1],gSpawnsDm[rand][2]); SetPlayerArmour(playerid, 100.0); SetPlayerHealth(playerid, 100.0); GivePlayerWeapon(playerid,34,500); } else if(listitem == 5) { GetPlayerName(playerid, pname, MAX_PLAYER_NAME); format(string, sizeof(string), "%s Foi Para o DM 1 Usando - (/teleportes)", pname); SendClientMessageToAll(0xFFFFFFAA, string); ResetPlayerWeapons(playerid); SetPlayerInterior(playerid,0); SetPlayerPos(playerid,2429.7317,1812.9167,38.8203); SetPlayerFacingAngle(playerid,306.7823); SetPlayerArmour(playerid, 100.0); SetPlayerHealth(playerid, 100.0); GivePlayerWeapon(playerid,32,9999); GivePlayerWeapon(playerid,31,9999); GivePlayerWeapon(playerid,40,20); GivePlayerWeapon(playerid,24,9999); } else if(listitem == 6) { GetPlayerName(playerid, pname, MAX_PLAYER_NAME); format(string, sizeof(string), "%s Foi Para o DM 2 Usando - (/teleportes)", pname); SendClientMessageToAll(0xFFFFFFAA, string); ResetPlayerWeapons(playerid); SetPlayerInterior(playerid,0); SetPlayerPos(playerid,1481.3945,-1790.0326,156.7533); SetPlayerFacingAngle(playerid,356.2890); SetPlayerArmour(playerid, 100.0); SetPlayerHealth(playerid, 100.0); GivePlayerWeapon(playerid,32,9999); GivePlayerWeapon(playerid,31,9999); GivePlayerWeapon(playerid,40,20); GivePlayerWeapon(playerid,24,9999); } else if(listitem == 7) { GetPlayerName(playerid, pname, MAX_PLAYER_NAME); format(string, sizeof(string), "%s Foi Para o DM 3 Usando - (/teleportes)", pname); SendClientMessageToAll(0xFFFFFFAA, string); ResetPlayerWeapons(playerid); SetPlayerInterior(playerid,0); SetPlayerPos(playerid,2092.9585,2416.4592,74.5786); SetPlayerArmour(playerid, 100.0); SetPlayerHealth(playerid, 100.0); GivePlayerWeapon(playerid,32,9999); GivePlayerWeapon(playerid,31,9999); GivePlayerWeapon(playerid,40,20); GivePlayerWeapon(playerid,24,9999); } else if(listitem == 8) { GetPlayerName(playerid, pname, MAX_PLAYER_NAME); format(string, sizeof(string), "%s Foi Para o DM 4 Usando - (/teleportes)", pname); SendClientMessageToAll(0xFFFFFFAA, string); ResetPlayerWeapons(playerid); SetPlayerInterior(playerid,0); SetPlayerPos(playerid,2130.2476,-2280.1096,20.6643); SetPlayerArmour(playerid, 100.0); SetPlayerHealth(playerid, 100.0); GivePlayerWeapon(playerid,32,9999); GivePlayerWeapon(playerid,31,9999); GivePlayerWeapon(playerid,24,9999); } else if(listitem == 9) { GetPlayerName(playerid, pname, MAX_PLAYER_NAME); format(string, sizeof(string), "%s Foi Para o DM 5 Usando - (/teleportes)", pname); SendClientMessageToAll(0xFFFFFFAA, string); ResetPlayerWeapons(playerid); SetPlayerInterior(playerid,0); SetPlayerPos(playerid,2159.9697,1125.9889,23.3359); SetPlayerArmour(playerid, 100.0); SetPlayerHealth(playerid, 100.0); GivePlayerWeapon(playerid,32,9999); GivePlayerWeapon(playerid,31,9999); GivePlayerWeapon(playerid,24,9999); } else if(listitem == 10) { GetPlayerName(playerid, pname, MAX_PLAYER_NAME); format(string, sizeof(string), "%s Foi Para o DM 6 Usando - (/teleportes)", pname); SendClientMessageToAll(0xFFFFFFAA, string); ResetPlayerWeapons(playerid); SetPlayerInterior(playerid,0); SetPlayerPos(playerid,1344.2286,2156.1602,11.0156); SetPlayerArmour(playerid, 100.0); SetPlayerHealth(playerid, 100.0); GivePlayerWeapon(playerid,32,9999); GivePlayerWeapon(playerid,31,9999); GivePlayerWeapon(playerid,24,9999); } else if(listitem == 11) { GetPlayerName(playerid, pname, MAX_PLAYER_NAME); format(string, sizeof(string), "%s Foi Para o DM 7 Usando - (/teleportes)", pname); SendClientMessageToAll(0xFFFFFFAA, string); ResetPlayerWeapons(playerid); SetPlayerInterior(playerid,0); SetPlayerPos(playerid,1308.7574,135.6636,20.4539); SetPlayerArmour(playerid, 100.0); SetPlayerHealth(playerid, 100.0); GivePlayerWeapon(playerid,32,9999); GivePlayerWeapon(playerid,24,9999); GivePlayerWeapon(playerid,34,500); } else if(listitem == 12) { GetPlayerName(playerid, pname, MAX_PLAYER_NAME); format(string, sizeof(string), "%s Foi Para o DM 8 Usando - (/teleportes)", pname); SendClientMessageToAll(0xFFFFFFAA, string); ResetPlayerWeapons(playerid); SetPlayerInterior(playerid,10); SetPlayerPos(playerid,-975.975708,1060.983032,1345.671875); SetPlayerArmour(playerid, 100.0); SetPlayerHealth(playerid, 100.0); GivePlayerWeapon(playerid,32,9999); GivePlayerWeapon(playerid,24,9999); GivePlayerWeapon(playerid,34,500); } else if(listitem == 13) { GetPlayerName(playerid, pname, MAX_PLAYER_NAME); format(string, sizeof(string), "%s Foi Para o DM 9 Usando - (/teleportes)", pname); SendClientMessageToAll(0xFFFFFFAA, string); ResetPlayerWeapons(playerid); SetPlayerInterior(playerid,2); SetPlayerPos(playerid,2543.462646,-1308.379882,1026.728393); SetPlayerArmour(playerid, 100.0); SetPlayerHealth(playerid, 100.0); GivePlayerWeapon(playerid,32,9999); GivePlayerWeapon(playerid,24,9999); GivePlayerWeapon(playerid,34,500); } else if(listitem == 14) { GetPlayerName(playerid, pname, MAX_PLAYER_NAME); format(string, sizeof(string), "%s Foi Para o DM 10 Usando - (/teleportes)", pname); SendClientMessageToAll(0xFFFFFFAA, string); ResetPlayerWeapons(playerid); SetPlayerInterior(playerid,0); SetPlayerPos(playerid,-1786.2994,553.6093,234.8874); SetPlayerArmour(playerid, 100.0); SetPlayerHealth(playerid, 100.0); GivePlayerWeapon(playerid,32,9999); GivePlayerWeapon(playerid,24,9999); GivePlayerWeapon(playerid,34,500); } else if(listitem == 15) { GetPlayerName(playerid, pname, MAX_PLAYER_NAME); format(string, sizeof(string), "%s Foi Para o DM 11 Usando - (/teleportes)", pname); SendClientMessageToAll(0xFFFFFFAA, string); ResetPlayerWeapons(playerid); SetPlayerInterior(playerid,0); SetPlayerPos(playerid,-1453.3539,501.8462,18.2641); SetPlayerArmour(playerid, 100.0); SetPlayerHealth(playerid, 100.0); GivePlayerWeapon(playerid,32,9999); GivePlayerWeapon(playerid,24,9999); GivePlayerWeapon(playerid,34,500); } } } if(dialogid == JFS_OWNA+3) // Corrida { if(response) { if(listitem == 0) { SetPlayerInterior(playerid,0); GetPlayerName(playerid, pname, MAX_PLAYER_NAME); format(string, sizeof(string), "%s Foi Para a Corrida Forб do Comum Usando - (/teleportes)", pname); SendClientMessageToAll(0xFFFFFFAA, string); SetPlayerInterior(playerid,0); ResetPlayerWeapons(playerid); SetPlayerPos(playerid,152.1394,-1972.0952,2.3430); SetPlayerFacingAngle(playerid,4.1726); new Jonathan[3000]; strins(Jonathan,"\n",strlen(Jonathan)); strins(Jonathan,"{33CCFF}Feito Por: Jonathan_Feitosa\n",strlen(Jonathan)); strins(Jonathan,"{7491F6}Nнvel: Mйdio\n",strlen(Jonathan)); strins(Jonathan,"\n",strlen(Jonathan)); ShowPlayerDialog(playerid,8440, DIALOG_STYLE_MSGBOX, "{33CCFF} ----------- ATENЗГO ----------- ",Jonathan, "Curtir", ""); } else if(listitem == 1) { SetPlayerInterior(playerid,0); GetPlayerName(playerid, pname, MAX_PLAYER_NAME); format(string, sizeof(string), "%s Foi Para a Corrida 1 Usando - (/teleportes)", pname); SendClientMessageToAll(0xFFFFFFAA, string); SetPlayerInterior(playerid,0); ResetPlayerWeapons(playerid); SetPlayerPos(playerid,1775.8253,2271.2017,6.1274); SetPlayerFacingAngle(playerid,178.9831); new Corrida[3000]; strins(Corrida,"\n",strlen(Corrida)); strins(Corrida,"{33CCFF}PISTA OFICIAL!\n",strlen(Corrida)); strins(Corrida,"{7491F6}Nнvel: Mйdio\n",strlen(Corrida)); strins(Corrida,"\n",strlen(Corrida)); ShowPlayerDialog(playerid,8440, DIALOG_STYLE_MSGBOX, "{33CCFF} ----------- ATENЗГO ----------- ",Corrida, "Curtir", ""); } else if(listitem == 2) { GetPlayerName(playerid, pname, MAX_PLAYER_NAME); format(string, sizeof(string), "%s Foi Para o Racha 1 Usando - (/teleportes)", pname); SendClientMessageToAll(0xFFFFFFAA, string); ResetPlayerWeapons(playerid); SetPlayerInterior(playerid,0); SetPlayerPos(playerid,2549.6104,-2047.7665,4.1543); SetPlayerArmour(playerid, 100.0); SetPlayerHealth(playerid, 100.0); new Racha1[3000]; strins(Racha1,"\n",strlen(Racha1)); strins(Racha1,"{33CCFF}PISTA OFICIAL!\n",strlen(Racha1)); strins(Racha1,"{7491F6}Nнvel: Fбcil\n",strlen(Racha1)); strins(Racha1,"\n",strlen(Racha1)); ShowPlayerDialog(playerid,8440, DIALOG_STYLE_MSGBOX, "{33CCFF} ----------- ATENЗГO ----------- ",Racha1, "Curtir", ""); } else if(listitem == 3) { GetPlayerName(playerid, pname, MAX_PLAYER_NAME); format(string, sizeof(string), "%s Foi Para o Racha 2 Usando - (/teleportes)", pname); SendClientMessageToAll(0xFFFFFFAA, string); ResetPlayerWeapons(playerid); SetPlayerInterior(playerid,0); SetPlayerPos(playerid,2546.1064,-1864.9740,4.4812); SetPlayerArmour(playerid, 100.0); SetPlayerHealth(playerid, 100.0); new Racha2[3000]; strins(Racha2,"\n",strlen(Racha2)); strins(Racha2,"{33CCFF}PISTA OFICIAL!\n",strlen(Racha2)); strins(Racha2,"{7491F6}Nнvel: Fбcil\n",strlen(Racha2)); strins(Racha2,"\n",strlen(Racha2)); ShowPlayerDialog(playerid,8440, DIALOG_STYLE_MSGBOX, "{33CCFF} ----------- ATENЗГO ----------- ",Racha2, "Curtir", ""); } else if(listitem == 4) { GetPlayerName(playerid, pname, MAX_PLAYER_NAME); format(string, sizeof(string), "%s Foi Para o Racha 3 Usando - (/teleportes)", pname); SendClientMessageToAll(0xFFFFFFAA, string); ResetPlayerWeapons(playerid); SetPlayerInterior(playerid,0); SetPlayerPos(playerid,2077.7263,-2402.8582,13.5469); SetPlayerArmour(playerid, 100.0); SetPlayerHealth(playerid, 100.0); new Racha3[3000]; strins(Racha3,"\n",strlen(Racha3)); strins(Racha3,"{33CCFF}PISTA OFICIAL!\n",strlen(Racha3)); strins(Racha3,"{7491F6}Nнvel: Fбcil\n",strlen(Racha3)); strins(Racha3,"\n",strlen(Racha3)); ShowPlayerDialog(playerid,8440, DIALOG_STYLE_MSGBOX, "{33CCFF} ----------- ATENЗГO ----------- ",Racha3, "Curtir", ""); } else if(listitem == 5) { GetPlayerName(playerid, pname, MAX_PLAYER_NAME); format(string, sizeof(string), "%s Foi Para o Racha 4 Usando - (/teleportes)", pname); SendClientMessageToAll(0xFFFFFFAA, string); ResetPlayerWeapons(playerid); SetPlayerInterior(playerid,0); SetPlayerPos(playerid,1543.5507,1148.7183,10.8125); SetPlayerArmour(playerid, 100.0); SetPlayerHealth(playerid, 100.0); new Racha4[3000]; strins(Racha4,"\n",strlen(Racha4)); strins(Racha4,"{33CCFF}PISTA OFICIAL!\n",strlen(Racha4)); strins(Racha4,"{7491F6}Nнvel: Fбcil\n",strlen(Racha4)); strins(Racha4,"\n",strlen(Racha4)); ShowPlayerDialog(playerid,8440, DIALOG_STYLE_MSGBOX, "{33CCFF} ----------- ATENЗГO ----------- ",Racha4, "Curtir", ""); } } } if(dialogid == 755) { ReceiverID[playerid] = strval(inputtext); ShowPlayerDialog(playerid,756,DIALOG_STYLE_INPUT,"Celular","Digite a mensagem:","Enviar","Cancelar"); return 1; } if(dialogid == 756) { if(response == 1) { if(reply[playerid] == 0) { PMfrom[ReceiverID[playerid]] = playerid; GetPlayerName(playerid, name, sizeof(name)); SendClientMessage(playerid, 0xFF66FFAA, "Mensagem enviada com sucesso."); format(string, 120, "Mensagem de %s : %s", name,inputtext); SendClientMessage(ReceiverID[playerid], 0xE6E6E6E6, string); PlayerPlaySound(ReceiverID[playerid], 1052, 0.0, 0.0, 0.0); PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0); } else if(reply[playerid] == 1) { PMfrom[ReceiverID[playerid]] = playerid; GetPlayerName(playerid, name, sizeof(name)); SendClientMessage(playerid, 0xFF66FFAA, "Mensagem respondida com sucesso."); format(string, 120, "Mensagem de: %s : %s", name,inputtext); SendClientMessage(PMfrom[playerid], 0xE6E6E6E6, string); reply[playerid] = 0; PlayerPlaySound(PMfrom[playerid], 1052, 0.0, 0.0, 0.0); PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0); } } return 1; } if(dialogid == 757) { if(response == 1) { ShowPlayerDialog(playerid,756,DIALOG_STYLE_INPUT,"Celular","Digite a mensagem:","Enviar","Cancelar"); reply[playerid] = 1; return 1; } } return 0; }
Код:
C:\Users\Bhupesh\Downloads\Compressed\samp\gamemodes\lvdm.pwn(2141) : error 017: undefined symbol "rand" C:\Users\Bhupesh\Downloads\Compressed\samp\gamemodes\lvdm.pwn(2141) : error 017: undefined symbol "gSpawnsDm" C:\Users\Bhupesh\Downloads\Compressed\samp\gamemodes\lvdm.pwn(2141) : error 029: invalid expression, assumed zero C:\Users\Bhupesh\Downloads\Compressed\samp\gamemodes\lvdm.pwn(2141) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.