14.03.2013, 22:04
pawn Код:
if(strcmp(cmdtext, "/pbomba", true) == 0)
{
/*if(PlayerInfo[playerid][CV] >= 6 || PlayerInfo[playerid][TCP] >= 6 || PlayerInfo[playerid][ADA] >= 6 || PlayerInfo[playerid][PCC] >= 6)
{
if(IsPlayerConnected(giveplayerid))
{*/
if(PlantouBomba[playerid] == 1) return SendClientMessage(playerid, Amarelo, "Vocк jб plantou uma bomba.");
else
{
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
format(string, sizeof(string), "{FFFFFF}O dono do morro {FFFF00}%s{FFFFFF} plantou uma bomba, cuidado!", pname);
SendClientMessageToAll(COLOR_WHITE, string);
bombplanttime = SetTimerEx("BombPlantTime", ARMARTEMPO*1000, 0, "d", playerid);
ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 1, 0, 0, 0, 0);
PlantouBomba[playerid] = 1;
return 1;
}
}