Jump to content
  • 0

ajuor /snowon


RaZzoR

Question

7 answers to this question

Recommended Posts

//=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-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

Link to comment
Share on other sites

Sunt 2 obiecte nu unu... Trebuie adaugat si cel pentru caciula . De aia tie nu-ti apare.

Inlucuieste asa :

SetPlayerAttachedObject(playerid, 4, 19065, 2, 0.120000, 0.040000, -0.003500, 0, 100, 100, 1.4, 1.4, 1.4);

PS : slot 3 e ocupat de la zapada. trebuie altu,  baga asa cu 4

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.