08.12.2012, 17:39
pawn Код:
// Topo:
new bool:JFSUmaVez[MAX_PLAYERS];
// public OnPlayerSpawn
JFSUmaVez[playerid] = false;
// comando
if(strcmp(cmdtext, "/colete", true) == 0)
{
if(JFSUmaVez[playerid] == true) return SendClientMessage(playerid, -1, "Vocк ja pegou o colete !!");
SetPlayerHealth(playerid, 100.0);
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
format(string, sizeof(string), "%s comprou {FF00FF}vida {FF0000}( /health )", pname);
SendClientMessageToAll(0xFFFFAE96, string);
JFSUmaVez[playerid] = true;
GivePlayerMoney(playerid, -100);
return true;
}