SHARE
TWEET

[MAP] Mapa @rZones Teams

Chip7 Sep 15th, 2012 109 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*VISITE NOSSO SITE: http://www.sampknd.com/
  2.   VISITE NOSSO FACEBOOK: http://www.facebook.com/SampKnd
  3.   SAMP KND MELHOR BLOG DE SAMP DO BRASIL
  4. */  
  5.  
  6. // == [Includes] == //
  7. #include           <a_samp> // Thanks SA-MP TEAM :P
  8. #include           <streamer> // Thanks Incognito :P
  9. #include           <bcmd> // Thanks BlueX :P
  10.  
  11. // == [Defines] == //
  12. #define rDialogt    88
  13. #define rBranco     0xD8F9FFAA
  14. #define rVermelho   0xFF0000AA
  15. #define rAzul       0x4095FFAA
  16.  
  17. // == [Variavel] == //
  18. new
  19.       rString[128],
  20.       bool:Bloque[MAX_PLAYERS],
  21.       Tempo[MAX_PLAYERS]
  22. ;
  23.  
  24. public OnFilterScriptInit()
  25. {
  26.     print("\n================================");
  27.     print(" [Map] Zone Teams - By: @Riichard");
  28.     print("================================\n");
  29.     // Objetos:
  30.     CreateDynamicObject(8355, -2943.1000976563, 2192.3000488281, 0.30000001192093, 0, 0, 2);
  31.     CreateDynamicObject(18266, -2936.8999023438, 2152.8000488281, 3.4000000953674, 0, 0, 168);
  32.     CreateDynamicObject(18229, -2983.3000488281, 2196.3999023438, -9.3000001907349, 0, 0, 2);
  33.     CreateDynamicObject(8355, -3057.3000488281, 2207.3999023438, 0.10000000149012, 0, 0, 359.99951171875);
  34.     CreateDynamicObject(18229, -3016.6000976563, 2195.1999511719, -9.3000001907349, 0, 0, 1.99951171875);
  35.     CreateDynamicObject(3279, -3043.3999023438, 2157.8000488281, -0.40000000596046, 0, 0, 158);
  36.     CreateDynamicObject(3279, -2953.8999023438, 2235.1999511719, -0.5, 0, 0, 342);
  37.     CreateDynamicObject(3271, -2937.5, 2220.5, 0.10000000149012, 0, 0, 0);
  38.     CreateDynamicObject(3271, -3056, 2161.8999023438, -0.20000000298023, 0, 0, 0);
  39.     CreateDynamicObject(1342, -2934.3000488281, 2182, 1.2999999523163, 0, 0, 170);
  40.     CreateDynamicObject(1231, -2959, 2174.6999511719, 2.7999999523163, 0, 0, 0);
  41.     CreateDynamicObject(1231, -2941.3000488281, 2186.6000976563, 2.7999999523163, 0, 0, 0);
  42.     CreateDynamicObject(1231, -2949.3000488281, 2205.1000976563, 2.7999999523163, 0, 0, 0);
  43.     CreateDynamicObject(1231, -2949.599609375, 2160.7998046875, 2.7999999523163, 0, 0, 0);
  44.     CreateDynamicObject(1231, -2960, 2225.6000976563, 2.7999999523163, 0, 0, 0);
  45.     CreateDynamicObject(1215, -3029.1999511719, 2199.6999511719, 2, 0, 0, 0);
  46.     CreateDynamicObject(1215, -3022, 2199.8999023438, 2, 0, 0, 0);
  47.     CreateDynamicObject(1215, -3016, 2200, 2, 0, 0, 0);
  48.     CreateDynamicObject(1215, -3006.3999023438, 2200.3999023438, 2, 0, 0, 0);
  49.     CreateDynamicObject(1215, -2995.8000488281, 2200.6999511719, 2, 0, 0, 0);
  50.     CreateDynamicObject(1215, -2986.5, 2200.8999023438, 2, 0, 0, 0);
  51.     CreateDynamicObject(1215, -2975.8999023438, 2201.3000488281, 2, 0, 0, 0);
  52.     CreateDynamicObject(14467, -2960.8000488281, 2209.6000976563, 2.7999999523163, 0, 0, 0);
  53.     CreateDynamicObject(14467, -2960.3000488281, 2192.6000976563, 2.7999999523163, 0, 0, 114);
  54.     CreateDynamicObject(14467, -3039.6000976563, 2209.5, 2.5999999046326, 0, 0, 320);
  55.     CreateDynamicObject(14467, -3040.6999511719, 2190, 2.5999999046326, 0, 0, 203.99877929688);
  56.     CreateDynamicObject(792, -2961.1999511719, 2232.8000488281, 0.30000001192093, 0, 0, 0);
  57.     CreateDynamicObject(792, -2946.3000488281, 2245.3999023438, 0.30000001192093, 0, 0, 0);
  58.     CreateDynamicObject(792, -2941.8000488281, 2182.6999511719, 0.30000001192093, 0, 0, 0);
  59.     CreateDynamicObject(792, -2960.1000976563, 2171.8999023438, 0.30000001192093, 0, 0, 0);
  60.     CreateDynamicObject(792, -2943.3999023438, 2196, 0.30000001192093, 0, 0, 0);
  61.     CreateDynamicObject(792, -3045, 2213.1999511719, -0.20000000298023, 0, 0, 348);
  62.     CreateDynamicObject(792, -3060.6000976563, 2179.8000488281, -0.20000000298023, 0, 0, 347.99743652344);
  63.     CreateDynamicObject(792, -3043.3000488281, 2186.1000976563, -0.20000000298023, 0, 0, 347.99743652344);
  64.     CreateDynamicObject(792, -3071.8000488281, 2199.1000976563, -0.20000000298023, 0, 0, 347.99743652344);
  65.     CreateDynamicObject(792, -3064.1999511719, 2168.8000488281, -0.20000000298023, 0, 0, 347.99743652344);
  66.     CreateDynamicObject(792, -3072.3999023438, 2154.8999023438, -0.20000000298023, 0, 0, 347.99743652344);
  67.     CreateDynamicObject(16061, -3067.6999511719, 2173, -0.20000000298023, 0, 0, 0);
  68.     CreateDynamicObject(16061, -2931.1000976563, 2183, -0.20000000298023, 0, 0, 0);
  69.     CreateDynamicObject(18259, -3061.3999023438, 2215.8999023438, 1, 0, 0, 116);
  70.     CreateDynamicObject(3458, -2958.6000976563, 2155.6999511719, 1.5, 0, 0, 272);
  71.     CreateDynamicObject(3458, -3057.6999511719, 2239.1000976563, 1.6000000238419, 0, 0, 180);
  72.     CreateDynamicObject(981, -3057.5, 2246.5, 0.89999997615814, 0, 0, 0);
  73.     CreateDynamicObject(8483, -2922.8000488281, 2190.6999511719, 5.9000000953674, 0, 0, 176);
  74.     CreateDynamicObject(3279, -2942.1999511719, 2189.8999023438, -0.5, 0, 0, 263.99893188477);
  75.     CreateDynamicObject(3279, -3058.6000976563, 2190.3999023438, -0.40000000596046, 0, 0, 203.99731445313);
  76.     CreateDynamicObject(16061, -3040.1999511719, 2163.3999023438, -0.20000000298023, 0, 0, 0);
  77.     CreateDynamicObject(16061, -2960.1000976563, 2232, -0.20000000298023, 0, 0, 0);
  78.     CreateDynamicObject(981, -2947.8000488281, 2252.3000488281, 0.89999997615814, 0, 0, 0);
  79.     CreateDynamicObject(1231, -3046.8999023438, 2167.5, 2.7999999523163, 0, 0, 0);
  80.     CreateDynamicObject(1231, -3052.8999023438, 2204.3000488281, 2.7999999523163, 0, 0, 0);
  81.     CreateDynamicObject(1231, -3067.8999023438, 2191.3999023438, 2.7999999523163, 0, 0, 0);
  82.     CreateDynamicObject(1231, -3064.6999511719, 2225.8000488281, 2.7999999523163, 0, 0, 0);
  83.     CreateDynamicObject(1231, -3044.8000488281, 2198.6999511719, 2.7999999523163, 0, 0, 0);
  84.     CreateDynamicObject(1231, -3050.8000488281, 2152, 2.7999999523163, 0, 0, 0);
  85.     CreateDynamicObject(1231, -3064, 2142.8999023438, 2.7999999523163, 0, 0, 0);
  86.     CreateDynamicObject(1231, -3057.1000976563, 2200.1000976563, 2.7999999523163, 0, 0, 0);
  87.     return 1;
  88. }
  89.  
  90. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  91. {
  92.     if(dialogid == rDialogt)
  93.     {
  94.         if(response)
  95.         {
  96.             if(listitem == 0)
  97.             {
  98.                 KillTimer(Tempo[playerid]);
  99.                 Bloque[playerid] = true;
  100.                 format(rString, sizeof(rString), "[rZoneTeams] O Jogador {4095FF}%s{D8F9FF} escolheu a equipe {4095FF}Nerds{D8F9FF}. ({4095FF}/zt{D8F9FF})", rNome(playerid));
  101.                 SendClientMessageToAll(rBranco, rString);
  102.                 ResetPlayerWeapons(playerid);
  103.                 SetPlayerPos(playerid, -3061.0159, 2217.4526, 2.0859);
  104.                 SetPlayerTeam(playerid, 1);
  105.                 GivePlayerWeapon(playerid, 4, 1);
  106.                 GivePlayerWeapon(playerid, 24, 950);
  107.                 GivePlayerWeapon(playerid, 27, 950);
  108.                 GivePlayerWeapon(playerid, 29, 950);
  109.                 GivePlayerWeapon(playerid, 31, 950);
  110.                 GivePlayerWeapon(playerid, 34, 950);
  111.                 SetPlayerSkin(playerid, 289);
  112.                 TogglePlayerControllable(playerid, false);
  113.                 GameTextForPlayer(playerid, "~r~~h~Carregando~w~...", 2000, 3);
  114.                 Tempo[playerid] = SetTimerEx("rDescongelar", 3000, true, "d", playerid);
  115.             }
  116.             if(listitem == 1)
  117.             {
  118.                 KillTimer(Tempo[playerid]);
  119.                 Bloque[playerid] = true;
  120.                 format(rString, sizeof(rString), "[rZoneTeams] O Jogador {4095FF}%s{D8F9FF} escolheu a equipe {4095FF}Traficante{D8F9FF}. ({4095FF}/zt{D8F9FF})", rNome(playerid));
  121.                 SendClientMessageToAll(rBranco, rString);
  122.                 ResetPlayerWeapons(playerid);
  123.                 SetPlayerPos(playerid,-2937.0891, 2168.7910, 1.3000);
  124.                 SetPlayerTeam(playerid, 2);
  125.                 GivePlayerWeapon(playerid, 4, 1);
  126.                 GivePlayerWeapon(playerid, 24, 950);
  127.                 GivePlayerWeapon(playerid, 27, 950);
  128.                 GivePlayerWeapon(playerid, 29, 950);
  129.                 GivePlayerWeapon(playerid, 31, 950);
  130.                 GivePlayerWeapon(playerid, 34, 950);
  131.                 SetPlayerSkin(playerid, 293);
  132.                 TogglePlayerControllable(playerid, false);
  133.                 GameTextForPlayer(playerid, "~r~~h~Carregando~w~...", 2000, 3);
  134.                 Tempo[playerid] = SetTimerEx("rDescongelar", 3000, true, "d", playerid);
  135.             }
  136.         }
  137.         return 1;
  138.     }
  139.     return 0;
  140. }
  141.  
  142. forward rDescongelar(playerid);
  143. public rDescongelar(playerid)
  144. {
  145.     TogglePlayerControllable(playerid, true);
  146.     KillTimer(Tempo[playerid]);
  147.     GameTextForPlayer(playerid, "~g~~h~Carregado~w~!", 2000, 3);
  148.     return 1;
  149. }
  150.  
  151. // Comando
  152. bCMD[zt]-(playerid)
  153. {
  154.     if(Bloque[playerid] == true) return SendClientMessage(playerid, rVermelho, "[rErro] Você já escolheu sua equipe. Use: /Sairzt!");
  155.     ShowPlayerDialog(playerid, rDialogt, DIALOG_STYLE_LIST, "{FF0000}[rZones Team] - Escolha seu time:", "{D8F9FF}1°{4095FF}  -  Nerds\n{D8F9FF}2°{4095FF}  -  Traficantes", "Selecionar", "Fechar");
  156.     return 1;
  157. }
  158.  
  159. bCMD[sairzt]-(playerid)
  160. {
  161.     if(Bloque[playerid] == false) return SendClientMessage(playerid, rVermelho, "[rErro] Você não está na Zone Teams.");
  162.     Bloque[playerid] = false;
  163.     SendClientMessage(playerid, rAzul, "[rAviso] Você foi liberado.");
  164.     SpawnPlayer(playerid);
  165.     return 1;
  166. }
  167.  
  168. public OnPlayerDisconnect(playerid, reason)
  169. {
  170.      Bloque[playerid] = false;
  171.      return 0;
  172. }
  173.  
  174. // Stock Nome
  175. stock rNome(playerid)
  176. {
  177.     new rnome[MAX_PLAYER_NAME];
  178.     GetPlayerName(playerid, rnome, MAX_PLAYER_NAME);
  179.     return rnome;
  180. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top