pawn Код:
//|=====================================================================|
//|Filterscript Feita Por BlackFrog Por Favor Nгo Apague isso, Obrigado!|
//|=====================================================================|
#include <a_samp>
main()
{
}
stock GivePlayerMultipleWeapon(playerid, weapon, bullets, weapon1 = 0, bullets1 = 0, weapon2 = 0, bullets2 = 0, weapon3 = 0, bullets3 = 0, weapon4 = 0, bullets4 = 0, weapon5 = 0, bullets5 = 0)
{
GivePlayerWeapon(playerid, weapon, bullets);
if(weapon1 != 0) GivePlayerWeapon(playerid, weapon1, bullets1);
if(weapon2 != 0) GivePlayerWeapon(playerid, weapon2, bullets2);
if(weapon3 != 0) GivePlayerWeapon(playerid, weapon3, bullets3);
if(weapon4 != 0) GivePlayerWeapon(playerid, weapon4, bullets4);
if(weapon5 != 0) GivePlayerWeapon(playerid, weapon5, bullets5);
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp("/kits", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid, 0x00FF00FF, "{1E90FF}==========| {FFFFFF}KITS{1E90FF} |==========");
SendClientMessage(playerid, 0x00FF00FF, "{FFFF00}[INFO]: {FF0000}Kit Walk | $1500 | - [ {00FF00}/kitwalk{FF0000} ]");
SendClientMessage(playerid, 0x00FF00FF, "{FFFF00}[INFO]: {FF0000}Kit Run | $1500 | - [ {00FF00}/kitrun{FF0000} ]");
SendClientMessage(playerid, 0x00FF00FF, "{FFFF00}[INFO]: {FF0000}Kit War | $2000 | - [ {00FF00}/kitwar{FF0000} ]");
SendClientMessage(playerid, 0x00FF00FF, "{1E90FF}==========================");
return 1;
}
if(strcmp("/kitwalk", cmdtext, true, 10) == 0)
{
if(GetPlayerMoney(playerid) < 1500) return SendClientMessage(playerid, 0x00FF00FF, "{FF0000}[ERRO]: Seu Dinheiro Nгo й Suficiente!");
ResetPlayerWeapons(playerid);
GivePlayerMultipleWeapon(playerid, 5, 1, 25, 999, 24, 999, 29, 999, 31, 999, 34, 999);
GivePlayerMoney(playerid, -1500);
SendClientMessage(playerid, 0x00FF00FF, "{FFFF00}[INFO]: {00FF00}Kit Walk Comprado Com Sucesso!");
return 1;
}
if(strcmp("/kitrun", cmdtext, true, 10) == 0)
{
if(GetPlayerMoney(playerid) < 1500) return SendClientMessage(playerid, 0x00FF00FF, "{FF0000}[ERRO]: Seu Dinheiro Nгo й Suficiente!");
ResetPlayerWeapons(playerid);
GivePlayerMultipleWeapon(playerid, 4, 1, 26, 999, 22, 999, 28, 999);
GivePlayerMoney(playerid, -1500);
SendClientMessage(playerid, 0x00FF00FF, "{FFFF00}[INFO]: {00FF00}Kit Run Comprado Com Sucesso!");
return 1;
}
if(strcmp("/kitwar", cmdtext, true, 10) == 0)
{
if(GetPlayerMoney(playerid) < 2000) return SendClientMessage(playerid, 0x00FF00FF, "{FF0000}[ERRO]: Seu Dinheiro Nгo й Suficiente!");
ResetPlayerWeapons(playerid);
GivePlayerMultipleWeapon(playerid, 9, 1, 31, 999, 34, 999, 27, 999, 42, 999, 28, 99);
GivePlayerMoney(playerid, -2000);
SendClientMessage(playerid, 0x00FF00FF, "{FFFF00}[INFO]: {00FF00}Kit War Comprado Com Sucesso!");
return 1;
}
return 0;
}