25.06.2013, 13:55
pawn Код:
COMMAND:kill(playerid, params[])
{
new string[128];
if(GetPlayerMoney(playerid) >= 100)
{
new Float:Px,Float:Py,Float:Pz;
GetPlayerPos(playerid,Px,Py,Pz);
CreateExplosion(Px,Py,Pz,5,5);
GivePlayerMoney(playerid,-100);
SetPlayerHealth(playerid,0);
GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
format(stringa, sizeof(stringa), " %s Queimou a Rosquinha e Perdeu R$100 (/Kill)", pname);
SendClientMessageToAll(THUG_LIFE, stringa);
format(string,sizeof(string),"Vocк Sу Tem R$%i, Й Nessesбrio R$100",GetPlayerMoney(playerid));
}
else
SendClientMessage(playerid,0x009D00AA, string);
return 1;
}
COMMAND:curativo(playerid, params[])
{
new string[128];
if(GetPlayerMoney(playerid) >= 400)
{
SetPlayerArmour(playerid, 100);
GivePlayerMoney(playerid, -400);
SetPlayerHealth(playerid, 100);
GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
format(stringa, sizeof(stringa), " %s Comprou Life e Colete (/Curativo)", pname);
SendClientMessageToAll(THUG_LIFE, stringa);
format(string,sizeof(string),"Й Nessesбrio R$400",GetPlayerMoney(playerid));
}
else
SendClientMessage(playerid, 0x009D00AA, string);
return 1;
}