Olб, boa noite б todos eu gostaria de saber como que faz um comando para comprar um kit de armas no new.pwn, eu tentei fazer porйm nгo deu certo.
Seguinte, gostaria que quando a pessoa matar alguem mostrar o motivo (mostrar a fotinho da arma do lado >)
Olб cara tб ai o do meu GM, dai vocк adapta para como preferir.. sу nao se esqueзa de tirar a linha:
Код:
if (!strcmp(cmdtext, "/armas", true) || !strcmp(cmdtext, "/kits", true))
{
if(Combate[playerid] == 1) return SendClientMessage(playerid, 0xfAA3333AA, "Para sair desta Arena, Morra ou digite /sair!");
{
SendClientMessage(playerid, COR_VERMELHA, "------------- Lista Dos Kits Para Compra ------------");
SendClientMessage(playerid, COR_AZUL, "Kit Vida - Vida 100 (HP) - Colete 100 (Armour) - R$ 20,000 - /kitvida");
SendClientMessage(playerid, COR_AZUL, "Kit Run - Snaw Off - Pistol - SMG - R$ 23.000 - /kitrun ");
SendClientMessage(playerid, COR_AZUL, "Kit Granada - 20 Granadas - R$ 20.000 - /kitgranadas");
SendClientMessage(playerid, COR_AZUL, "Kit Shot - Desert Eagle - Combat Shotgun - R$ 23.000 - /kitshot");
SendClientMessage(playerid, COR_AZUL, "Kit RPG Simples - Rocket Louncher (3 balas) - R$ 75.000 - /kitrpg ");
SendClientMessage(playerid, COR_AZUL, "Kit RPG Advanced - HS Rocket Louncher (5 balas) - Molotovs - M4 - R$ 120.000 - /kitrpghs ");
SendClientMessage(playerid, COR_AZUL, "Kit Ant-Zombie - Skin Van Helsing - Chainsaw - Flamethrower - Molotov - Shotgun - R$ 65.000 - /kitvan");
SendClientMessage(playerid, COR_AZUL, "Kit Sniper - Sniper Rifle - M4 - Knife - 9mm Silenced - R$ 26.000 - /kitsniper");
SendClientMessage(playerid, COR_AZUL, "Kit Osama - Skin Terrorista - Rocket Launcher (1 bala) - Granada (10) - AK-47 - Desert Eagle - Micro SMG - R$ 90.000 - /kitosama ");
SendClientMessage(playerid, COR_AZUL, "Kit Piloto - Skin Piloto - Parachute - Extintor - 9mm Silenced - R$ 10.000 - /kitpiloto");
SendClientMessage(playerid, COR_VERMELHA, "---------Quer armas separadas? Vб a um Amunation e compre!-------");
SendClientMessage(playerid, COR_VERMELHA, "------------- Lista Dos Kits Para Compra ( Suba o chat ^ )------------");
return 1;
}
}
// kit vida
if (strcmp("/kitvida", cmdtext, true, 10) == 0)
{
if(Combate[playerid] == 1) return SendClientMessage(playerid, 0xfAA3333AA, "Para sair desta Arena, Morra ou digite /sair!");
{
if (GetPlayerMoney(playerid) >= 20000)
{
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 100);
SendClientMessage(playerid, COR_AZUL, "[KIT] Vocк comprou o Kit Vida, e restaurou seu HP e MP! ");
GivePlayerMoney(playerid, -20000);
new pName[MAX_PLAYER_NAME];
new string[128];
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), "%s Comprou Kit Vida! ", pName);
SendClientMessageToAll(COR_AZUL, string);
return 1;
}
else
{
SendClientMessage(playerid, COR_VERMELHA, "[KIT] Vocк nгo tem dinheiro suficiente! ");
return 1;
}
}
}
// kit Run
if (strcmp("/kitrun", cmdtext, true, 10) == 0)
{
if(Combate[playerid] == 1) return SendClientMessage(playerid, 0xfAA3333AA, "Para sair desta Arena, Morra ou digite /sair!");
{
if (GetPlayerMoney(playerid) >= 23000)
{
GivePlayerWeapon(playerid, 26, 1000);
GivePlayerWeapon(playerid, 22, 1000);
GivePlayerWeapon(playerid, 28, 1000);
SendClientMessage(playerid, COR_AZUL, "[KIT] Vocк comprou o Kit Run, Ganhou armas Run como Snaw Off! ");
GivePlayerMoney(playerid, -23000);
new pName[MAX_PLAYER_NAME];
new string[128];
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), "%s Comprou Kit Run! ", pName);
SendClientMessageToAll(COR_AZUL, string);
return 1;
}
else
{
SendClientMessage(playerid, COR_VERMELHA, "[KIT] Vocк nгo tem dinheiro suficiente! ");
return 1;
}
}
}
// Kit Granada
if (strcmp("/kitgranada", cmdtext, true, 10) == 0)
{
if(Combate[playerid] == 1) return SendClientMessage(playerid, 0xfAA3333AA, "Para sair desta Arena, Morra ou digite /sair!");
{
if (GetPlayerMoney(playerid) >= 20000)
{
GivePlayerWeapon(playerid, 16, 20);
SendClientMessage(playerid, COR_AZUL, "[KIT] Vocк comprou o Kit Granada, Ganhou 20 Granadas! ");
GivePlayerMoney(playerid, -20000);
new pName[MAX_PLAYER_NAME];
new string[128];
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), "%s Comprou Kit Granada! ", pName);
SendClientMessageToAll(COR_AZUL, string);
return 1;
}
else
{
SendClientMessage(playerid, COR_VERMELHA, "[KIT] Vocк nгo tem dinheiro suficiente! ");
return 1;
}
}
}
if (strcmp("/kitshot", cmdtext, true, 10) == 0)
{
if(Combate[playerid] == 1) return SendClientMessage(playerid, 0xfAA3333AA, "Para sair desta Arena, Morra ou digite /sair!");
{
if (GetPlayerMoney(playerid) >= 23000)
{
GivePlayerWeapon(playerid, 24, 500);
GivePlayerWeapon(playerid, 27, 500);
SendClientMessage(playerid, COR_AZUL, "[KIT] Vocк comprou o Kit Shot, Ganhou uma Desert e uma Combat Shotgun! ");
GivePlayerMoney(playerid, -23000);
new pName[MAX_PLAYER_NAME];
new string[128];
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), "%s Comprou Kit Shot! ", pName);
SendClientMessageToAll(COR_AZUL, string);
return 1;
}
else
{
SendClientMessage(playerid, COR_VERMELHA, "[KIT] Vocк nгo tem dinheiro suficiente! ");
return 1;
}
}
}
if (strcmp("/kitrpg", cmdtext, true, 10) == 0)
{
if(Combate[playerid] == 1) return SendClientMessage(playerid, 0xfAA3333AA, "Para sair desta Arena, Morra ou digite /sair!");
{
if (GetPlayerMoney(playerid) >= 75000)
{
GivePlayerWeapon(playerid, 35, 3);
SendClientMessage(playerid, COR_AZUL, "[KIT] Vocк comprou o Kit RPG Simples, Ganhou um RPG com 3 balas! ");
GivePlayerMoney(playerid, -75000);
new pName[MAX_PLAYER_NAME];
new string[128];
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), "%s Comprou Kit RPG Simples! ", pName);
SendClientMessageToAll(COR_AZUL, string);
return 1;
}
else
{
SendClientMessage(playerid, COR_VERMELHA, "[KIT] Vocк nгo tem dinheiro suficiente! ");
return 1;
}
}
}
if (strcmp("/kitvan", cmdtext, true, 10) == 0)
{
if(Combate[playerid] == 1) return SendClientMessage(playerid, 0xfAA3333AA, "Para sair desta Arena, Morra ou digite /sair!");
{
if (GetPlayerMoney(playerid) >= 65000)
{
SetPlayerSkin(playerid, 33);
GivePlayerWeapon(playerid, 9, 99999);
GivePlayerWeapon(playerid, 37, 500);
GivePlayerWeapon(playerid, 18, 500);
GivePlayerWeapon(playerid, 25, 500);
SendClientMessage(playerid, COR_AZUL, "[KIT] Vocк comprou o Kit Anti-Zombie, Agora Vб a Caзa! ");
GivePlayerMoney(playerid, -65000);
new pName[MAX_PLAYER_NAME];
new string[128];
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), "%s Comprou Kit Anti-Zombie! ", pName);
SendClientMessageToAll(COR_AZUL, string);
return 1;
}
else
{
SendClientMessage(playerid, COR_VERMELHA, "[KIT] Vocк nгo tem dinheiro suficiente! ");
return 1;
}
}
}
if (strcmp("/kitrpghs", cmdtext, true, 10) == 0)
{
if(Combate[playerid] == 1) return SendClientMessage(playerid, 0xfAA3333AA, "Para sair desta Arena, Morra ou digite /sair!");
{
if (GetPlayerMoney(playerid) >= 120000)
{
GivePlayerWeapon(playerid, 36, 5);
GivePlayerWeapon(playerid, 18, 20);
GivePlayerWeapon(playerid, 31, 900);
SendClientMessage(playerid, COR_AZUL, "[KIT] Vocк comprou o Kit RPG Advanced, Ganhou um RPG HS com 5 balas! ");
GivePlayerMoney(playerid, -120000);
new pName[MAX_PLAYER_NAME];
new string[128];
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), "%s Comprou Kit RPG Advanced, Cuidado com ele! ", pName);
SendClientMessageToAll(COR_AZUL, string);
return 1;
}
else
{
SendClientMessage(playerid, COR_VERMELHA, "[KIT] Vocк nгo tem dinheiro suficiente! ");
return 1;
}
}
}
if (strcmp("/kitsniper", cmdtext, true, 10) == 0)
{
if(Combate[playerid] == 1) return SendClientMessage(playerid, 0xfAA3333AA, "Para sair desta Arena, Morra ou digite /sair!");
{
if (GetPlayerMoney(playerid) >= 26000)
{
GivePlayerWeapon(playerid, 4, 5);
GivePlayerWeapon(playerid, 34, 900);
GivePlayerWeapon(playerid, 31, 900);
GivePlayerWeapon(playerid, 23, 900);
SendClientMessage(playerid, COR_AZUL, "[KIT] Vocк comprou o Kit Sniper, Fique de camper! ");
GivePlayerMoney(playerid, -26000);
new pName[MAX_PLAYER_NAME];
new string[128];
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), "%s Comprou Kit Sniper! ", pName);
SendClientMessageToAll(COR_AZUL, string);
return 1;
}
else
{
SendClientMessage(playerid, COR_VERMELHA, "[KIT] Vocк nгo tem dinheiro suficiente! ");
return 1;
}
}
}
if (strcmp("/kitosama", cmdtext, true, 10) == 0)
{
if(Combate[playerid] == 1) return SendClientMessage(playerid, 0xfAA3333AA, "Para sair desta Arena, Morra ou digite /sair!");
{
if (GetPlayerMoney(playerid) >= 90000)
{
SetPlayerSkin(playerid, 73);
GivePlayerWeapon(playerid, 35, 1);
GivePlayerWeapon(playerid, 16, 10);
GivePlayerWeapon(playerid, 24, 900);
GivePlayerWeapon(playerid, 30, 900);
GivePlayerWeapon(playerid, 28, 900);
SendClientMessage(playerid, COR_AZUL, "[KIT] Vocк comprou o Kit Osama, Virou um terrorista! ");
GivePlayerMoney(playerid, -90000);
new pName[MAX_PLAYER_NAME];
new string[128];
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), "%s Comprou Kit Osama! ", pName);
SendClientMessageToAll(COR_AZUL, string);
return 1;
}
else
{
SendClientMessage(playerid, COR_VERMELHA, "[KIT] Vocк nгo tem dinheiro suficiente! ");
return 1;
}
}
}
if (strcmp("/kitpiloto", cmdtext, true, 10) == 0)
{
if(Combate[playerid] == 1) return SendClientMessage(playerid, 0xfAA3333AA, "Para sair desta Arena, Morra ou digite /sair!");
{
if (GetPlayerMoney(playerid) >= 10000)
{
SetPlayerSkin(playerid, 61);
GivePlayerWeapon(playerid, 42, 900);
GivePlayerWeapon(playerid, 45, 10);
GivePlayerWeapon(playerid, 46, 900);
GivePlayerWeapon(playerid, 23, 900);
SendClientMessage(playerid, COR_AZUL, "[KIT] Vocк comprou o Kit Piloto, Pronto para decolar o AT-400! ");
GivePlayerMoney(playerid, -10000);
new pName[MAX_PLAYER_NAME];
new string[128];
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), "%s Comprou Kit Piloto e estб voando por ai! ", pName);
SendClientMessageToAll(COR_AZUL, string);
return 1;
}
else
{
SendClientMessage(playerid, COR_VERMELHA, "[KIT] Vocк nгo tem dinheiro suficiente! ");
return 1;
}
}
}