[AJUDA] Ajuda com comando.
#6

pawn Код:
new bool:colete[MAX_PLAYERS];   // topo
pawn Код:
public OnPlayerDeath(playerid, killerid, reason) // no onplayerdeath
{
colete[playerid]=false;
return 1;
}
pawn Код:
if(strcmp(cmdtext, "/Colete", true) == 0)
{
if(colete[playerid]==true) return SendClientMessage(playerid,0xd6deacAA,"ERRO: Apenas um colete por morte!");//І no SubZero
GivePlayerMoney(playerid, -2000);
SetPlayerArmour(playerid,100.0);
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
format(string, sizeof(string), "* '%s' comprou um Colete | Comando: '/colete'.", pname);
SendClientMessageToAll(0xd6deacAA, string);
GameTextForPlayer(playerid,"~w~COLETE ~n~  ~y~Comprado", 3000, 5);
colete[playerid]=true;
return 1;
}
Usem Bool quando й para Verdadeiro e Falso...
Reply


Messages In This Thread
[AJUDA] Ajuda com comando. - by Pawn - 10.08.2010, 19:01
Re: [AJUDA] Ajuda com comando. - by gunslinger - 10.08.2010, 19:34
Re: [AJUDA] Ajuda com comando. - by Pawn - 10.08.2010, 21:51
Re: [AJUDA] Ajuda com comando. - by zSuYaNw - 10.08.2010, 22:09
Re: [AJUDA] Ajuda com comando. - by SuB_ZeRo0_ - 10.08.2010, 22:28
Re: [AJUDA] Ajuda com comando. - by ipsBruno - 10.08.2010, 23:51

Forum Jump:


Users browsing this thread: 1 Guest(s)