21.04.2012, 19:58
pawn Code:
#include <a_samp>
#include <zcmd>
#include <sscanf>
//Cor
#define COLOR_BALLAS 0xD900D366
#define COLOR_GROOVE 0x00D90066
COMMAND:arma(playerid, params[])
{
new Arma;
GetPlayerName(playerid, Name, sizeof(Name));
if(sscanf(params, "d", Arma)) return SendClientMessage(playerid,COLOR_BALLAS,"Use: /arma [arma]");
if(Arma < 1 || Arma > 46) return SendClientMessage(playerid,COLOR_BALLAS,"Armas de ID 1 a 46");
GivePlayerWeapon(playerid, Arma, 999);
format(Celulas, sizeof(Celulas), "[ARMA]O Jogador %s(ID:%d) Pegou Arma(/arma).", Name, playerid);
SendClientMessageToAll(COLOR_BALLAS, Celulas);
return 1;
}
COMMAND:vida(playerid, params[])
{
new Vida;
GetPlayerName(playerid, Name, sizeof(Name));
if(sscanf(params, "d", Vida)) return SendClientMessage(playerid,COLOR_BALLAS,"Use: /Vida [Quatia]");
if(Vida < 1 || Vida > 100) return SendClientMessage(playerid,COLOR_BALLAS,"Apenas de 1 a 100");
SetPlayerHealth(playerid, Vida);
format(Celulas, sizeof(Celulas), "[Vida]O Jogador %s(ID:%d) Pegou Vida(/vida).", Name, playerid);
SendClientMessageToAll(COLOR_BALLAS, Celulas);
return 1;
}
COMMAND:colete(playerid, params[])
{
new Colete;
GetPlayerName(playerid, Name, sizeof(Name));
if(sscanf(params, "d", Colete)) return SendClientMessage(playerid,COLOR_BALLAS,"Use: /Colete [Quatia]");
if(Colete < 1 || Colete > 90) return SendClientMessage(playerid,COLOR_BALLAS,"Apenas de 1 a 90");
SetPlayerArmour(playerid, Colete);
format(Celulas, sizeof(Celulas), "[Colete]O Jogador %s(ID:%d) Pegou Colete(/Colete).", Name, playerid);
SendClientMessageToAll(COLOR_BALLAS, Celulas);
return 1;
}
COMMAND:kit1(playerid, params[])
{
GetPlayerName(playerid, Name, sizeof(Name));
GivePlayerWeapon(playerid, 24, 999);
GivePlayerWeapon(playerid, 18, 999);
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 100);
format(Celulas,sizeof(Celulas),"[KIT] O Jogador %s(ID:%d) pegou um Kit-01 (/Kit1)", Name, playerid);
SendClientMessageToAll(COLOR_GROOVE, Celulas);
return 1;
}
COMMAND:kit2(playerid, params[])
{
GetPlayerName(playerid, Name, sizeof(Name));
GivePlayerWeapon(playerid, 24, 999);
GivePlayerWeapon(playerid, 18, 999);
GivePlayerWeapon(playerid, 23, 999);
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 100);
format(Celulas,sizeof(Celulas),"[KIT] O Jogador %s(ID:%d) pegou um Kit-02 (/Kit2)", Name, playerid);
SendClientMessageToAll(COLOR_GROOVE, Celulas);
return 1;
}
COMMAND:kit3(playerid, params[])
{
GetPlayerName(playerid, Name, sizeof(Name));
GivePlayerWeapon(playerid, 24, 999);
GivePlayerWeapon(playerid, 18, 999);
GivePlayerWeapon(playerid, 23, 999);
GivePlayerWeapon(playerid, 20, 999);
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 100);
format(Celulas,sizeof(Celulas),"[KIT] O Jogador %s(ID:%d) pegou um Kit-03 (/Kit3)", Name, playerid);
SendClientMessageToAll(COLOR_GROOVE, Celulas);
return 1;
}