08.02.2013, 19:06
Zombie Surviver Arena Brasil[BETA]
Classes para escolher
Humanos
Assault Armas: Desert Eagle / Shotgun / m4 / mp5 / Colete
Sniper Armas: Desert Eagle / mp5 / Rifle Sniper
Mйdico Armas: Desert Eagle / Shotgun Comandos /curar [playerID]
Suporte Armas: Desert Eagle / Flamethrower / Satchel Charge / Detonator Comandos /barreira [para criar uma barreira]
Zumbis
Tyrant - Resident Evil 2 Armas: Baseball Bat
El Salvador - Resident Evil 4 Armas: Chainsaw
Smoker - Left 4 Dead Armas: Shovel Comandos /puxar [playerID] que estiver a 50 metros
Hunter - Left 4 Dead Armas: Knife Comandos /pular [playerID] que estiver a 50 metros
Som feito pelos players:
Som de entrada => https://dl.dropbox.com/s/du2cgoltoqs...antscream2.wav
Grito de Ataque Hunter => https://dl.dropbox.com/s/ksvi0o388ubbpaz/shriek_1.wav
Grito de Ataque Smoker => https://dl.dropbox.com/s/7t6knqssqnt...er_Warn_01.wav
Bandagem feita pelo Mйdico = > https://dl.dropbox.com/s/wn8y48wyjzp...andaging_1.wav
Imagens do GM
/imageshack/img707/5879/samp064yq.png
/imageshack/img541/2515/samp061dh.png
/imageshack/img600/6569/samp062fq.png
/imageshack/img819/3784/samp063li.png
Comentбrios:
Meu primeiro Game-Mode postado aqui no Forum =]
Versгo Beta! testei sozinho e nгo encontrei bugs.. postando aqui caso algo de errado seja encontrado para ser corrigido o mais rбpido possнvel para postar a versгo 1.0
Quando o player morrer seja Humano ou Zumbi ele sera transformado em um Zumbi Comum e ira renascer no mesmo local onde foi morto.
No Game Mode contem 9 Times, cada player й de um time diferente.
Mйdico 0
El Salvador Resident Evil 4 1
Hunter Left 4 Dead 2
Smoker Left 4 Dead 3
Tyrant Resident Evil 2 4
Assault 5
Sniper 6
Suporte7
Zombie Comum 8
Prуximas versхes
Anti Friend Fire
Sistema de Rounds
Sistema de Login, Level, Score...
Corrigir os bugs caso tenha
Crйditos
forum.sa-mp.com
www.******.com
Were_Woofer
Game Mode:
Classes para escolher
Humanos
Assault Armas: Desert Eagle / Shotgun / m4 / mp5 / Colete
Sniper Armas: Desert Eagle / mp5 / Rifle Sniper
Mйdico Armas: Desert Eagle / Shotgun Comandos /curar [playerID]
Suporte Armas: Desert Eagle / Flamethrower / Satchel Charge / Detonator Comandos /barreira [para criar uma barreira]
Zumbis
Tyrant - Resident Evil 2 Armas: Baseball Bat
El Salvador - Resident Evil 4 Armas: Chainsaw
Smoker - Left 4 Dead Armas: Shovel Comandos /puxar [playerID] que estiver a 50 metros
Hunter - Left 4 Dead Armas: Knife Comandos /pular [playerID] que estiver a 50 metros
Som feito pelos players:
Som de entrada => https://dl.dropbox.com/s/du2cgoltoqs...antscream2.wav
Grito de Ataque Hunter => https://dl.dropbox.com/s/ksvi0o388ubbpaz/shriek_1.wav
Grito de Ataque Smoker => https://dl.dropbox.com/s/7t6knqssqnt...er_Warn_01.wav
Bandagem feita pelo Mйdico = > https://dl.dropbox.com/s/wn8y48wyjzp...andaging_1.wav
Imagens do GM
/imageshack/img707/5879/samp064yq.png
/imageshack/img541/2515/samp061dh.png
/imageshack/img600/6569/samp062fq.png
/imageshack/img819/3784/samp063li.png
Comentбrios:
Meu primeiro Game-Mode postado aqui no Forum =]
Versгo Beta! testei sozinho e nгo encontrei bugs.. postando aqui caso algo de errado seja encontrado para ser corrigido o mais rбpido possнvel para postar a versгo 1.0
Quando o player morrer seja Humano ou Zumbi ele sera transformado em um Zumbi Comum e ira renascer no mesmo local onde foi morto.
No Game Mode contem 9 Times, cada player й de um time diferente.
Mйdico 0
El Salvador Resident Evil 4 1
Hunter Left 4 Dead 2
Smoker Left 4 Dead 3
Tyrant Resident Evil 2 4
Assault 5
Sniper 6
Suporte7
Zombie Comum 8
Prуximas versхes
Anti Friend Fire
Sistema de Rounds
Sistema de Login, Level, Score...
Corrigir os bugs caso tenha
Crйditos
forum.sa-mp.com
www.******.com
Were_Woofer
Game Mode:
pawn Код:
#include <a_samp>
#include <streamer>
#define MAXPLAYERS 100
new TeamGang[MAXPLAYERS];
#undef MAXPLAYERS
#define DIALOGID 3300
new
Float:x,
Float:y,
Float:z,
Keys,
ud,
lr,
Float:health,
Float:armour
;
enum
{
DIALOG_CLASSE,
DIALOG_ZUMBI,
DIALOG_HUMANO
}
new skins[] =
{
75,
79,
134,
135,
136,
160
};
new Float:xxx, Float:yyy, Float:zzz;
new Float:XC, Float:YC, Float:ZC, Float:A;
main()
{
print("\n----------------------------------");
print("Zombie Surviver Arena BRASIL");
print("----------------------------------\n");
}
public OnGameModeInit()
{
SetGameModeText("Zombie");
UsePlayerPedAnims();
DisableInteriorEnterExits();
SetNameTagDrawDistance(200);
EnableStuntBonusForAll(0);
CreateDynamicObject(8148,1534.0999756,2802.5000000,12.6000004,0.0000000,0.0000000,0.0000000); //object(vgsselecfence02) (1)
CreateDynamicObject(8148,1453.3000488,2882.6999512,12.1999998,0.0000000,0.0000000,90.0000000); //object(vgsselecfence02) (2)
CreateDynamicObject(8148,1291.5999756,2882.6999512,12.1999998,0.0000000,0.0000000,90.0000000); //object(vgsselecfence02) (3)
CreateDynamicObject(8148,1129.9000244,2882.6999512,12.1999998,0.0000000,0.0000000,90.0000000); //object(vgsselecfence02) (4)
CreateDynamicObject(8148,1122.0999756,2879.6000977,17.5000000,0.0000000,0.0000000,118.0000000); //object(vgsselecfence02) (5)
CreateDynamicObject(8148,1059.3000488,2761.3000488,10.5000000,0.0000000,0.0000000,185.9987183); //object(vgsselecfence02) (6)
CreateDynamicObject(8148,1144.3000488,2723.8999023,12.8000002,0.0000000,0.0000000,269.4985352); //object(vgsselecfence02) (7)
CreateDynamicObject(8148,1305.5000000,2723.6000977,12.8000002,0.0000000,0.0000000,269.9946289); //object(vgsselecfence02) (8)
CreateDynamicObject(8148,1453.8000488,2723.8000488,12.6000004,0.0000000,0.0000000,269.9945068); //object(vgsselecfence02) (9)
CreateDynamicObject(8148,1059.3000488,2761.3000488,17.0000000,0.0000000,0.0000000,185.9985352); //object(vgsselecfence02) (10)
CreateDynamicObject(8148,1129.9000244,2882.6999512,19.1000004,0.0000000,0.0000000,90.0000000); //object(vgsselecfence02) (11)
CreateDynamicObject(8148,1144.3000488,2723.8999023,17.0000000,0.0000000,0.0000000,269.4946289); //object(vgsselecfence02) (12)
CreateDynamicObject(7939,1370.5000000,2843.6000977,11.3000002,0.0000000,0.0000000,87.0000000); //object(glfcrsgate29_vgn) (1)
CreateDynamicObject(7939,1366.4000244,2733.6000977,11.3000002,0.0000000,0.0000000,268.9952393); //object(glfcrsgate29_vgn) (2)
CreateDynamicObject(2892,1367.4000244,2788.6000977,9.8000002,0.0000000,0.0000000,356.2500000); //object(temp_stinger) (1)
CreateDynamicObject(3279,1373.9000244,2810.8000488,9.6000004,0.0000000,0.0000000,0.0000000); //object(a51_spottower) (1)
CreateDynamicObject(3279,1377.5000000,2864.0000000,9.6000004,0.0000000,0.0000000,0.0000000); //object(a51_spottower) (2)
CreateDynamicObject(3279,1371.8000488,2771.1000977,9.5000000,0.0000000,0.0000000,0.0000000); //object(a51_spottower) (3)
CreateDynamicObject(3279,1371.5000000,2741.1000977,9.5000000,0.0000000,0.0000000,0.0000000); //object(a51_spottower) (4)
CreateDynamicObject(3279,1400.5000000,2751.3999023,9.5000000,0.0000000,0.0000000,0.0000000); //object(a51_spottower) (5)
CreateDynamicObject(3279,1392.5999756,2788.6000977,9.5000000,0.0000000,0.0000000,0.0000000); //object(a51_spottower) (6)
CreateDynamicObject(2985,1369.8000488,2784.8000488,9.8000002,0.0000000,0.0000000,174.0000000); //object(minigun_base) (1)
CreateDynamicObject(2985,1369.6999512,2792.3999023,9.8000002,0.0000000,0.0000000,178.9959717); //object(minigun_base) (2)
CreateDynamicObject(16138,1514.1999512,2818.8999023,9.6999998,0.0000000,0.0000000,0.0000000); //object(des_teleshed2_01) (1)
CreateDynamicObject(3866,1098.0999756,2747.8000488,17.2999992,0.0000000,0.0000000,244.0000000); //object(demolish1_sfxrf) (1)
CreateDynamicObject(17067,1515.9000244,2860.6999512,9.1999998,359.0000000,0.0000000,0.0000000); //object(cw2_logcabins) (1)
CreateDynamicObject(17067,1501.1999512,2861.5000000,9.3999996,359.2500000,0.0000000,0.0000000); //object(cw2_logcabins) (2)
CreateDynamicObject(17067,1485.5000000,2862.0000000,9.3999996,359.5000000,0.0000000,0.0000000); //object(cw2_logcabins) (3)
CreateDynamicObject(17067,1471.5000000,2861.8000488,9.3999996,359.2500000,359.7499695,359.9967346); //object(cw2_logcabins) (4)
CreateDynamicObject(17067,1457.3000488,2862.8000488,9.3999996,359.2474365,359.7473145,359.9945068); //object(cw2_logcabins) (5)
CreateDynamicObject(3279,1445.5999756,2865.5000000,9.3000002,0.0000000,0.0000000,0.0000000); //object(a51_spottower) (7)
CreateDynamicObject(3279,1527.8000488,2819.1999512,9.3000002,0.0000000,0.0000000,0.0000000); //object(a51_spottower) (8)
CreateDynamicObject(3279,1518.5000000,2844.1000977,9.3000002,0.0000000,0.0000000,0.0000000); //object(a51_spottower) (9)
CreateDynamicObject(3279,1441.5000000,2825.8999023,9.3000002,0.0000000,0.0000000,0.0000000); //object(a51_spottower) (10)
CreateDynamicObject(3279,1425.5999756,2810.3999023,-2.2000000,0.0000000,0.0000000,0.0000000); //object(a51_spottower) (11)
CreateDynamicObject(3361,1409.6999512,2773.5000000,12.0000000,0.0000000,0.0000000,181.7500000); //object(cxref_woodstair) (1)
CreateDynamicObject(3361,1426.5000000,2790.1999512,15.6000004,0.0000000,0.0000000,90.7468262); //object(cxref_woodstair) (2)
CreateDynamicObject(3361,1426.5999756,2757.3000488,15.6999998,0.0000000,0.0000000,269.7415771); //object(cxref_woodstair) (3)
CreateDynamicObject(3885,1378.0999756,2836.5000000,10.3999996,0.0000000,0.0000000,260.0000000); //object(sambase_sfxrf) (1)
CreateDynamicObject(3885,1372.9000244,2760.3000488,10.3999996,0.0000000,0.0000000,259.9969482); //object(sambase_sfxrf) (2)
CreateDynamicObject(3885,1390.6999512,2770.1999512,10.3999996,0.0000000,0.0000000,259.9969482); //object(sambase_sfxrf) (3)
CreateDynamicObject(3885,1376.3000488,2788.3000488,10.3999996,0.0000000,0.0000000,259.9969482); //object(sambase_sfxrf) (4)
CreateDynamicObject(3885,1392.5999756,2814.8999023,10.3999996,0.0000000,0.0000000,259.9969482); //object(sambase_sfxrf) (5)
CreateDynamicObject(3866,1176.1999512,2764.6999512,17.2999992,0.0000000,0.0000000,243.9953613); //object(demolish1_sfxrf) (2)
CreateDynamicObject(3866,1259.0999756,2861.1000977,17.1000004,0.0000000,0.0000000,243.9953613); //object(demolish1_sfxrf) (3)
CreateDynamicObject(3877,1367.6999512,2793.1000977,10.6999998,0.0000000,0.0000000,358.5000000); //object(sf_rooflite) (1)
CreateDynamicObject(3877,1367.1999512,2784.1000977,10.6999998,0.0000000,0.0000000,358.4948730); //object(sf_rooflite) (2)
CreateDynamicObject(3877,1309.0999756,2828.5000000,10.6999998,0.0000000,0.0000000,358.4948730); //object(sf_rooflite) (3)
CreateDynamicObject(3877,1276.5000000,2781.0000000,10.6999998,0.0000000,0.0000000,358.4948730); //object(sf_rooflite) (4)
CreateDynamicObject(3877,1231.8000488,2785.5000000,10.6999998,0.0000000,0.0000000,358.4948730); //object(sf_rooflite) (5)
CreateDynamicObject(3864,1374.5999756,2801.6999512,15.6999998,0.0000000,0.0000000,353.7500000); //object(ws_floodlight) (1)
CreateDynamicObject(3864,1375.3000488,2826.0000000,15.6999998,0.0000000,0.0000000,353.7487793); //object(ws_floodlight) (2)
CreateDynamicObject(3864,1376.5000000,2853.3000488,15.6999998,0.0000000,0.0000000,353.7487793); //object(ws_floodlight) (3)
CreateDynamicObject(1290,1445.5000000,2839.1999512,15.3000002,0.0000000,0.0000000,0.0000000); //object(lamppost2) (1)
CreateDynamicObject(1290,1457.5000000,2858.0000000,15.3000002,0.0000000,0.0000000,0.0000000); //object(lamppost2) (2)
CreateDynamicObject(1290,1475.3000488,2875.0000000,15.3000002,0.0000000,0.0000000,0.0000000); //object(lamppost2) (3)
CreateDynamicObject(1290,1492.9000244,2864.1999512,15.3000002,0.0000000,0.0000000,0.0000000); //object(lamppost2) (4)
CreateDynamicObject(1290,1476.3000488,2839.3999023,15.3000002,0.0000000,0.0000000,0.0000000); //object(lamppost2) (5)
CreateDynamicObject(1290,1503.6999512,2839.1000977,15.3000002,0.0000000,0.0000000,0.0000000); //object(lamppost2) (6)
CreateDynamicObject(1290,1513.4000244,2865.5000000,15.3000002,0.0000000,0.0000000,0.0000000); //object(lamppost2) (7)
CreateDynamicObject(5463,1515.0999756,2746.0000000,22.6000004,0.0000000,0.0000000,0.0000000); //object(laebuildsit01) (1)
CreateDynamicObject(10008,1504.4000244,2761.6000977,12.5000000,0.0000000,0.0000000,303.7500000); //object(fer_cars2_sfe) (1)
CreateDynamicObject(10008,1504.4000244,2761.6000977,18.7999992,0.0000000,0.0000000,303.7500000); //object(fer_cars2_sfe) (2)
CreateDynamicObject(10008,1504.4000244,2761.6000977,25.0000000,0.0000000,0.0000000,303.7500000); //object(fer_cars2_sfe) (3)
CreateDynamicObject(10008,1504.4000244,2761.6000977,31.2999992,0.0000000,0.0000000,303.7500000); //object(fer_cars2_sfe) (4)
CreateDynamicObject(10008,1462.3000488,2797.0000000,10.8000002,0.0000000,0.0000000,195.7500000); //object(fer_cars2_sfe) (5)
CreateDynamicObject(7017,1466.4000244,2747.0000000,23.3999996,75.0001831,90.0000000,89.7498779); //object(circusconstruct07) (1)
SetWorldTime(23);
SetWeather(20);
return 1;
}
public OnGameModeExit()
{
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
ShowPlayerDialog(playerid, DIALOG_CLASSE, DIALOG_STYLE_LIST, "Escolha Seu time", "Zumbis\nHumanos", "Escolher", "Cancelar");
return 1;
}
public OnPlayerConnect(playerid)
{
new name[MAX_PLAYER_NAME], string[44];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s Logou no Servidor",name);
SendClientMessageToAll(0xFF8000FF, string);
SendDeathMessage(playerid, -1, 200);
PlayAudioStreamForPlayer(playerid, "https://dl.dropbox.com/s/du2cgoltoqszauu/female_distantscream2.wav");
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
SendDeathMessage(playerid, -1, 201);
return 1;
}
public OnPlayerSpawn(playerid)
{
if(TeamGang[playerid] == 0)//Medico
{
ResetPlayerWeapons(playerid);
SetPlayerSkin(playerid,274);
SetPlayerColor(playerid, 0x0080FFFF);
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 1423.7173,2774.2241,14.8203);
GivePlayerWeapon(playerid,24,500);
GivePlayerWeapon(playerid,25,500);
SetPlayerArmour(playerid,0);
SendClientMessage(playerid,0x0080FFFF,"Comandos /curar [ID] player que estiver prуximo /ajuda ");
}
if(TeamGang[playerid] == 1)//El Salvador
{
ResetPlayerWeapons(playerid);
SetPlayerColor(playerid, 0x9C0A23FF);
SetPlayerSkin(playerid,137);
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 1090.9650,2750.2625,10.8203);
GivePlayerWeapon(playerid,9,1);
SetPlayerArmour(playerid,0);
SendClientMessage(playerid,0x9C0A23FF,"Comandos /ajuda ");
}
if(TeamGang[playerid] == 2)//Hunter
{
ResetPlayerWeapons(playerid);
SetPlayerColor(playerid, 0x9C0A23FF);
SetPlayerSkin(playerid,29);
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 1090.9650,2750.2625,10.8203);
GivePlayerWeapon(playerid,4,1);
SetPlayerArmour(playerid,0);
SendClientMessage(playerid,0x9C0A23FF,"Comandos /pular [ID] player que estiver a 50 Metros /ajuda ");
}
if(TeamGang[playerid] == 3)//Smoker
{
ResetPlayerWeapons(playerid);
SetPlayerSkin(playerid,78);
SetPlayerColor(playerid, 0x9C0A23FF);
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 1090.9650,2750.2625,10.8203);
GivePlayerWeapon(playerid,6,1);
SetPlayerArmour(playerid,0);
SendClientMessage(playerid,0x9C0A23FF,"Comandos /puxar [ID] player que estiver a 50 Metros /ajuda ");
}
if(TeamGang[playerid] == 4)//Tyrant
{
ResetPlayerWeapons(playerid);
SetPlayerSkin(playerid,163);
SetPlayerColor(playerid, 0x9C0A23FF);
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 1090.9650,2750.2625,10.8203);
SetPlayerArmour(playerid,100);
GivePlayerWeapon(playerid,5,1);
SendClientMessage(playerid,0x9C0A23FF,"Comandos /ajuda ");
}
if(TeamGang[playerid] == 5)//Sniper
{
ResetPlayerWeapons(playerid);
SetPlayerSkin(playerid,285);
SetPlayerColor(playerid, 0x0080FFFF);
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 1423.7173,2774.2241,14.8203);
GivePlayerWeapon(playerid,24,500);
GivePlayerWeapon(playerid,29,500);
GivePlayerWeapon(playerid,34,500);
SetPlayerArmour(playerid,0);
SendClientMessage(playerid,0x0080FFFF,"Comandos/ajuda ");
}
if(TeamGang[playerid] == 6)//Assault
{
ResetPlayerWeapons(playerid);
SetPlayerSkin(playerid,287);
SetPlayerColor(playerid, 0x0080FFFF);
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 1423.7173,2774.2241,14.8203);
GivePlayerWeapon(playerid,24,500);
GivePlayerWeapon(playerid,29,500);
GivePlayerWeapon(playerid,31,500);
GivePlayerWeapon(playerid,25,500);
SetPlayerArmour(playerid,70);
SendClientMessage(playerid,0x0080FFFF,"Comandos /ajuda ");
}
if(TeamGang[playerid] == 7)//Suporte
{
ResetPlayerWeapons(playerid);
SetPlayerSkin(playerid,179);
SetPlayerColor(playerid, 0x0080FFFF);
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 1423.7173,2774.2241,14.8203);
GivePlayerWeapon(playerid,24,500);
GivePlayerWeapon(playerid,37,500);
GivePlayerWeapon(playerid,39,5);
GivePlayerWeapon(playerid,40,1);
SetPlayerArmour(playerid,0);
SendClientMessage(playerid,0x0080FFFF,"Comandos /barreira /ajuda ");
}
if(TeamGang[playerid] == 8)//Zumbi
{
ResetPlayerWeapons(playerid);
SetPlayerSkin(playerid, skins[random(6)]);
SetPlayerColor(playerid, 0x9C0A23FF);
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, xxx,yyy,zzz);
GivePlayerWeapon(playerid,5,1);
SetPlayerArmour(playerid,0);
SendClientMessage(playerid,0x0080FFFF,"Comandos /ajuda ");
}
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
SendClientMessage(playerid,0x30DDE7FF,"Vocк Morreu e se tornou um Zumbi comum! ");
GetPlayerPos(playerid,xxx,yyy,zzz);
OnPlayerCommandText(playerid,"/zumbicomum");
if(killerid != INVALID_PLAYER_ID) SetPlayerScore(killerid, GetPlayerScore(killerid) + 1);
SendDeathMessage(killerid, playerid, reason);
GivePlayerMoney(killerid, 1000);
new Float:Health,Float:Armour; GetPlayerHealth(playerid,Health); GetPlayerArmour(playerid,Armour);
if(TeamGang[killerid] == 1) SendClientMessage(killerid,0xFC8769FF,"Vocк Comeu um Humano e ganhou 20 de Armor!e ganhou um ponto de Score! ");
if(TeamGang[killerid] == 0) SendClientMessage(killerid,0x30DDE7FF,"Boa Mais Um pra sua Lista!Vocк ganhou mais um ponto de Score! ");
if(TeamGang[killerid] == 1) SetPlayerArmour(killerid,Armour+20);
if(TeamGang[killerid] == 2) SendClientMessage(killerid,0xFC8769FF,"Vocк Comeu um Humano e ganhou 20 de Armor!e ganhou um ponto de Score! ");
if(TeamGang[killerid] == 5) SendClientMessage(killerid,0x30DDE7FF,"Boa Mais Um pra sua Lista!Vocк ganhou mais um ponto de Score! ");
if(TeamGang[killerid] == 2) SetPlayerArmour(killerid,Armour+20);
if(TeamGang[killerid] == 3) SendClientMessage(killerid,0xFC8769FF,"Vocк Comeu um Humano e ganhou 20 de Armor!e ganhou um ponto de Score! ");
if(TeamGang[killerid] == 3) SetPlayerArmour(killerid,Armour+20);
if(TeamGang[killerid] == 4) SendClientMessage(killerid,0xFC8769FF,"Vocк Comeu um Humano e ganhou 20 de Armor!e ganhou um ponto de Score! ");
if(TeamGang[killerid] == 4) SetPlayerArmour(killerid,Armour+20);
if(TeamGang[killerid] == 6) SendClientMessage(killerid,0x30DDE7FF,"Boa Mais Um pra sua Lista!Vocк ganhou mais um ponto de Score! ");
if(TeamGang[killerid] == 7) SendClientMessage(killerid,0x30DDE7FF,"Boa Mais Um pra sua Lista!Vocк ganhou mais um ponto de Score! ");
return 1;
}
public OnPlayerText(playerid, text[])
{
return 1;
}
static CurarTime[MAX_PLAYERS];
stock CurarFlooding(playerid)
{
if(GetTickCount() - CurarTime[playerid] < 15000 )
return 1;
return 0;
}
static pularTime[MAX_PLAYERS];
stock pularFlooding(playerid)
{
if(GetTickCount() - pularTime[playerid] < 15000 )
return 1;
return 0;
}
static puxarTime[MAX_PLAYERS];
stock puxarFlooding(playerid)
{
if(GetTickCount() - puxarTime[playerid] < 15000 )
return 1;
return 0;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/classe", cmdtext, true, 10) == 0)
{
ShowPlayerDialog(playerid, DIALOG_CLASSE, DIALOG_STYLE_LIST, "Escolha Seu time", "Zumbis\nHumanos", "Escolher", "Cancelar");
return 1;
}
new cmd[256], idx;
cmd = strtok(cmdtext, idx);
if(strcmp(cmd, "/Curar", true) == 0)
{
if(TeamGang[playerid] == 0)//Mйdico
{
if(CurarFlooding(playerid)){SendClientMessage(playerid, 0xFF0000FF, "vocк sу pode usar este comando cada 15 Segundo.");return 1;}
CurarTime[playerid] = GetTickCount();
new tmp[256];
tmp = strtok(cmdtext,idx);
new Float:xx, Float:yy, Float:zz;
GetPlayerPos(playerid, xx,yy,zz);
if(IsPlayerInRangeOfPoint(strval(tmp), 4.0, xx,yy,zz))
{
if(strlen(tmp) == 0) return SendClientMessage(playerid, 0xFFFFFFFF, "USE: /Curar [Nick/ID] no player que estiver prуximo");
SetPlayerArmour(strval(tmp), 70.0);
SetPlayerHealth(strval(tmp),100.0);
SendClientMessage(strval(tmp),0xFFFF00AA,"Vocк foi curado por um Mйdico.");
PlayAudioStreamForPlayer(playerid, "https://dl.dropbox.com/s/wn8y48wyjzpj8jr/bandaging_1.wav");
PlayAudioStreamForPlayer(strval(tmp), "https://dl.dropbox.com/s/wn8y48wyjzpj8jr/bandaging_1.wav");
}
}
return 1;
}
if(!strcmp(cmd, "/pular", true))
{
if(TeamGang[playerid] == 2)//Hunter
{
if(pularFlooding(playerid)){SendClientMessage(playerid, 0xFF0000FF, "vocк sу pode usar este comando cada 15 Segundo.");return 1;}
pularTime[playerid] = GetTickCount();
new tmp[256];
tmp = strtok(cmdtext,idx);
new Float:xx, Float:yy, Float:zz;
GetPlayerPos(strval(tmp), xx,yy,zz);
if(IsPlayerInRangeOfPoint(strval(tmp), 50.0, xx,yy,zz))
{
if(!strval(tmp)) return SendClientMessage(playerid, 0xFF0000AA, "/pular [playerid]");
if(strval(tmp) == playerid) return SendClientMessage(playerid, 0xFF0000AA, "Vocк nгo pode pular em vocк mesmo...");
if(!IsPlayerConnected(strval(tmp))) return SendClientMessage(playerid, 0xFF0000AA, "O player nгo estб conectado");
new name[MAX_PLAYER_NAME+1], string[24+MAX_PLAYER_NAME+1];
GetPlayerName(strval(tmp),name, 24);
SetPlayerPos(playerid, xx, yy+4, zz);
new String[56];
format(String, sizeof(String), "Vocк pulou em %s(%d)", strval(tmp));
SendClientMessage(playerid, 0xFF0000AA, String);
format(string, sizeof(string), "%s Foi Atacado por um Hunter.", name);
SendClientMessageToAll(0xC4C4C4FF, string);
OnPlayerCommandText(playerid,"/huntersound");
}
}
return 1;
}
if(!strcmp(cmd, "/puxar", true))//Smoker
{
if(TeamGang[playerid] == 3)
{
if(puxarFlooding(playerid)){SendClientMessage(playerid, 0xFF0000FF, "vocк sу pode usar este comando cada 15 Segundo.");return 1;}
puxarTime[playerid] = GetTickCount();
new tmp[256];
tmp = strtok(cmdtext,idx);
new Float:xxxx, Float:yyyy, Float:zzzz;
GetPlayerPos(playerid, xxxx,yyyy,zzzz);
if(IsPlayerInRangeOfPoint(strval(tmp), 50.0, xxxx,yyyy,zzzz))
{
if(!strval(tmp)) return SendClientMessage(playerid, 0xFF0000AA, "/puxar [playerid]");
if(strval(tmp) == playerid) return SendClientMessage(playerid, 0xFF0000AA, "Vocк nгo pode puxar vocк mesmo...");
if(!IsPlayerConnected(strval(tmp))) return SendClientMessage(playerid, 0xFF0000AA, "O player nгo estб conectado");
new name[MAX_PLAYER_NAME+1], string[24+MAX_PLAYER_NAME+1];
GetPlayerName(strval(tmp),name, 24);
SetPlayerPos(strval(tmp), xxxx, yyyy+4, zzzz);
new String[56];
format(String, sizeof(String), "Vocк puxou %s(%d)", strval(tmp));
SendClientMessage(playerid, 0xFF0000AA, String);
format(string, sizeof(string), "%s Foi Agarrado por um Smoker.", name);
SendClientMessageToAll(0xC4C4C4FF, string);
OnPlayerCommandText(playerid,"/smokersound");
}
}
return 1;
}
if(!strcmp(cmd, "/barreira", true)) //suporte
{
if(TeamGang[playerid] == 7)
{
GetPlayerPos(playerid, XC, YC, ZC);
GetPlayerFacingAngle(playerid, A);
CreateDynamicObject(981, XC, YC, ZC, 0.0, 0.0, A+180);
SetPlayerPos(playerid, XC, YC, ZC+4);
GameTextForPlayer(playerid, "~w~Barreira ~r~Plantada", 5000, 5);
SendClientMessage(playerid, 0x0080FFFF, "Barreira implantada com sucesso.");
new name[MAX_PLAYER_NAME], string[44];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s Plantou uma barreira",name);
SendClientMessageToAll(0x0080FFFF, string);
}
return 1;
}
if(!strcmp(cmd, "/huntersound", true))
{
for(new i=1; i<MAX_PLAYERS; i++)
{
PlayAudioStreamForPlayer(i, "https://dl.dropbox.com/s/ksvi0o388ubbpaz/shriek_1.wav");
}
return 1;
}
if(!strcmp(cmd, "/smokersound", true))
{
for(new i=1; i<MAX_PLAYERS; i++)
{
PlayAudioStreamForPlayer(i, "https://dl.dropbox.com/s/7t6knqssqntfhnk/Smoker_Warn_01.wav");
}
return 1;
}
if(!strcmp(cmd, "/suicidar", true))
{
SetPlayerHealth(playerid,0.0);
return 1;
}
if(!strcmp(cmd, "/zumbicomum", true))
{
TeamGang[playerid] = 8;
return 1;
}
return 0;
}
public OnPlayerUpdate(playerid)
{
GetPlayerKeys(playerid,Keys,ud,lr);
if(Keys == KEY_FIRE && GetPlayerWeapon(playerid) == 5) {
for(new i=0;i<500;i++) {
if(IsPlayerConnected(i)) {
GetPlayerPos(playerid, x, y, z);
if(playerid != i){
if(IsPlayerInRangeOfPoint(i, 1.5, x,y,z)) {
GetPlayerArmour(playerid, armour);
GetPlayerHealth(i,health);
if(armour > 0) {
SetPlayerArmour(i,armour-70);
return false;
}
SetPlayerHealth(i,health-70);
}
}
}
}
}
GetPlayerKeys(playerid,Keys,ud,lr);
if(Keys == KEY_FIRE && GetPlayerWeapon(playerid) == 4) {
for(new i=0;i<500;i++) {
if(IsPlayerConnected(i)) {
GetPlayerPos(playerid, x, y, z);
if(playerid != i){
if(IsPlayerInRangeOfPoint(i, 1.5, x,y,z)) {
GetPlayerArmour(playerid, armour);
GetPlayerHealth(i,health);
if(armour > 0) {
SetPlayerArmour(i,armour-40);
return false;
}
SetPlayerHealth(i,health-40);
}
}
}
}
}
GetPlayerKeys(playerid,Keys,ud,lr);
if(Keys == KEY_FIRE && GetPlayerWeapon(playerid) == 9) {
for(new i=0;i<500;i++) {
if(IsPlayerConnected(i)) {
GetPlayerPos(playerid, x, y, z);
if(playerid != i){
if(IsPlayerInRangeOfPoint(i, 1.5, x,y,z)) {
GetPlayerArmour(playerid, armour);
GetPlayerHealth(i,health);
if(armour > 0) {
SetPlayerArmour(i,armour-200);
return false;
}
SetPlayerHealth(i,health-200);
}
}
}
}
}
GetPlayerKeys(playerid,Keys,ud,lr);
if(Keys == KEY_FIRE && GetPlayerWeapon(playerid) == 6) {
for(new i=0;i<500;i++) {
if(IsPlayerConnected(i)) {
GetPlayerPos(playerid, x, y, z);
if(playerid != i){
if(IsPlayerInRangeOfPoint(i, 1.5, x,y,z)) {
GetPlayerArmour(playerid, armour);
GetPlayerHealth(i,health);
if(armour > 0) {
SetPlayerArmour(i,armour-40);
return false;
}
SetPlayerHealth(i,health-40);
}
}
}
}
}
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DIALOG_CLASSE) // Teleport Dialog
{
if(response)
{
if(listitem == 0) // Zumbis
{
ShowPlayerDialog(playerid, DIALOG_ZUMBI, DIALOG_STYLE_LIST, "Zumbis", "Hunter - Left 4 Dead\nSmoker - Left 4 Dead\nTyrant - Resident Evil 2\nEl Salvador - Resident Evil 4\nVoltar", "Escolher", "Cancelar");
}
if(listitem == 1) // Humanos
{
ShowPlayerDialog(playerid, DIALOG_HUMANO, DIALOG_STYLE_LIST, "Humanos", "Medico\nAssault\nSniper\nSuporte \nVoltar", "Escolher", "Cancelar");
}
}
return 1;
}
if(dialogid == DIALOG_ZUMBI) // Zumbis
{
if(response)
{
if(listitem == 0) // Hunter
{
TeamGang[playerid] = 2;
SetPlayerSkin(playerid,29);
SendClientMessage(playerid, 0x89C8F5FF, "Vocк se transformou em um Hunter - Left 4 Dead.");
SpawnPlayer(playerid);
new name[MAX_PLAYER_NAME], string[44];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s Agora й um Hunter",name);
SendClientMessageToAll(0x9C0A23FF, string);
}
if(listitem == 1) //Smoker
{
TeamGang[playerid] = 3;
SetPlayerSkin(playerid,78);
SendClientMessage(playerid, 0x89C8F5FF, "Vocк se transformou em um Smoker - Left 4 Dead.");
SpawnPlayer(playerid);
new name[MAX_PLAYER_NAME], string[44];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s Agora й o um Smoker",name);
SendClientMessageToAll(0x9C0A23FF, string);
}
if(listitem == 2) // Tyrant
{
TeamGang[playerid] = 4;
SetPlayerSkin(playerid,163);
SendClientMessage(playerid, 0x89C8F5FF, "Vocк se transformou em um Tyrant - Resident Evil 2.");
SpawnPlayer(playerid);
new name[MAX_PLAYER_NAME], string[44];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s Agora й um Tyrant",name);
SendClientMessageToAll(0x9C0A23FF, string);
}
if(listitem == 3) // El Salvador
{
TeamGang[playerid] = 1;
SetPlayerSkin(playerid,137);
SendClientMessage(playerid, 0x89C8F5FF, "Vocк se transformou no El Salvador - Resident Evil 4.");
SpawnPlayer(playerid);
new name[MAX_PLAYER_NAME], string[44];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s Agora й o destemido El Salvador",name);
SendClientMessageToAll(0x9C0A23FF, string);
}
if(listitem == 5) // Voltar
{
OnPlayerCommandText(playerid,"/classe");
}
else
{
SendClientMessage(playerid, 0x8000FFFF, "Use /classe para mudar de time");
OnPlayerCommandText(playerid,"/classe");
}
}
return 1;
}
if(dialogid == DIALOG_HUMANO) // Humanos
{
if(response)
{
if(listitem == 0) // Medico
{
TeamGang[playerid] = 0;
SetPlayerSkin(playerid,274);
SendClientMessage(playerid, 0x89C8F5FF, "Agora vocк й um Medico.");
SpawnPlayer(playerid);
new name[MAX_PLAYER_NAME], string[44];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s Agora й um Mйdico",name);
SendClientMessageToAll(0x0080FFFF, string);
}
if(listitem == 1) //Assault
{
TeamGang[playerid] = 6;
SetPlayerSkin(playerid,287);
SendClientMessage(playerid, 0x89C8F5FF, "Agora vocк й membro da equipe de Assault.");
SpawnPlayer(playerid);
new name[MAX_PLAYER_NAME], string[44];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s Agora й um Membro da Assault",name);
SendClientMessageToAll(0x0080FFFF, string);
}
if(listitem == 2) //Sniper
{
TeamGang[playerid] = 5;
SetPlayerSkin(playerid,285);
SendClientMessage(playerid, 0x89C8F5FF, "Agora vocк й um Sniper.");
SpawnPlayer(playerid);
new name[MAX_PLAYER_NAME], string[44];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s Agora й um Sniper",name);
SendClientMessageToAll(0x0080FFFF, string);
}
if(listitem == 3) // Suporte
{
TeamGang[playerid] = 7;
SetPlayerSkin(playerid,179);
SendClientMessage(playerid, 0x89C8F5FF, "Agora vocк й um Soldado de Suporte.");
SpawnPlayer(playerid);
new name[MAX_PLAYER_NAME], string[44];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s Agora й um Soldado de Suporte",name);
SendClientMessageToAll(0x0080FFFF, string);
}
if(listitem == 5) // Voltar
{
OnPlayerCommandText(playerid,"/classe");
}
else
{
SendClientMessage(playerid, 0x8000FFFF, "Use /classe para mudar de time");
OnPlayerCommandText(playerid,"/classe");
}
}
return 1;
}
return 1;
}
strtok(const string[], &index)
{
new length = strlen(string);
while ((index < length) && (string[index] <= ' '))
{
index++;
}
new offset = index;
new result[20];
while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
{
result[index - offset] = string[index];
index++;
}
result[index - offset] = EOS;
return result;
}