//=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-snowon-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
if(strcmp(cmd, "/snowon", true) == 0) //by JustRed
{
if(PlayerInfo[playerid][pServerAdmin] >= 5)
{
if(SnowOn == 0)
{
for(new i=0; i<MAX_PLAYERS; i++)
{
SetPlayerAttachedObject(i, 3, 18863, 1, 14.877702, -3.078147, 19.289804, 213.993621, 36.619785, 334.528167 ); // SnowArc1 - 8167
}
SetWeather(9);
SnowOn = 1;
SendClientMessageToAll(COLOR_NEWS, "[SAN Meteo]: Breaking News: The weather is now changing to Frosty Snow, be carefull on the roads !");
format(string, sizeof(string), "{6790BE}[AdmWarning]{FFFFFF}: %s a folosit comanda /snowon {FF0000}!",sendername);
ABroadCast(COLOR_YELLOW,string,1);
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "Tu nu ai voie sa folosesti aceasta comanda.");
return 1;
}
return 1;
}
//=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-snowoff-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
if(strcmp(cmd, "/snowoff", true) == 0) //by JustRed
{
if(PlayerInfo[playerid][pServerAdmin] >= 5) // Aici pui functia ta >= (Mai mare sau egal decat admin 8)
{
if(SnowOn == 1)
{
for(new i=0; i<MAX_PLAYERS; i++)
{
RemovePlayerAttachedObject(i, 3);
}
SetWeather(14);
SnowOn = 0;
SendClientMessageToAll(COLOR_NEWS, "Meteo Atention: The weather is changing, no other information about this !");
format(string, sizeof(string), "{6790BE}[AdmWarning]{FFFFFF}: %s a folosit comanda /snowoff {FF0000}!",sendername);
ABroadCast(COLOR_YELLOW,string,1);
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "Tu nu ai voie sa folosesti aceasta comanda.");
return 1;
}
return 1;
} Poftim