Код:
CMD:zavrsirat(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] >= 4)
{
if(RatnoVrijeme != 0)
{
RatnoVrijeme = 0;
foreach(Player, i)
{
if(GetPVarInt(i, "Ratuje") != 0)
{
new string[128];
new sendername[MAX_PLAYER_NAME];
DeletePlayer3DTextLabel(i, ratnitext1);DeletePlayer3DTextLabel(i, ratnitext2);SetPVarInt(i, "Tim1", 0);SetPVarInt(i, "Tim2", 0);
SetPVarInt(i, "Ratuje", 0); ResetPlayerWeapons(i); SpawnPlayer(i); TextDrawHideForPlayer(i, preostalovrijeme);TextDrawHideForPlayer(i, crvenitim);TextDrawHideForPlayer(i, plavitim);TextDrawHideForPlayer(i, ratnaz);
format(string,sizeof(string), "{FF0000}Rat je ponisten! | {FFFF80}Admin: %s", sendername);SCM(i, 0xFF4141FF, string);
}
}
new string1[128],idname[MAX_PLAYER_NAME];
format(string1,sizeof(string1), "{FF0000}Ponistio si{FFFF80} Rat ", idname);SCM(playerid, 0xFF4141FF, string1);
}
else SendClientMessage(playerid, COLOR_GRAD1, "Rat nije u toku!");
}
else SendClientMessage(playerid, COLOR_GRAD1, "Nisi ovlasten !");
return 1;
}
SendClientMessage(playerid, COLOR_GRAD1, ""COL_RED"(ZeuS)"COL_ORANGE"Ta komanda ne postoji, da vidite listu svih dostupnih komandi upisite "COL_YELLOW"/help.");
return 1;
}