Wysłany: 2011-12-31, 18:02
paskal
gtaoffline.pl
Wiek: 29 Na forum: 5644 dni Posty: 242
Piwa : 341
Witam
Mam cz??? takiego kodu:
Kod: public Pozary()
{
switch(random(5))
{
case 0:
{
SendClientMessageToAll(morski,"!!!!!! Do wszystkich jednostek !!!!");
SendClientMessageToAll(morskazielen,"Po?ar przy {93FFEA}Caligula's Casino w {3500FF}Las Venturas.");
}
case 1:
{
SendClientMessageToAll(morski,"!!!!!! Do wszystkich jednostek !!!!");
SendClientMessageToAll(morskazielen,"Po?ar przy {93FFEA}domu Johnson'?w w {3500FF}Los Santos.");
}
case 2:
{
SendClientMessageToAll(czerwony,"!!!!!! Do wszystkich jednostek !!!!");
SendClientMessageToAll(morskazielen,"Po?ar przy {93FFEA}Wang Cars w {3500FF}San Fierro.");
}
case 3:
{
SendClientMessageToAll(czerwony,"!!!!!! Do wszystkich jednostek !!!!");
}
case 4:
{
SendClientMessageToAll(czerwony,"!!!!!! Do wszystkich jednostek !!!!");
}
}
return 1;
}
Timer:
Kod: SetTimer("Pozary", 600000, 1);
Tam gdzie pisze:
Kod: SendClientMessageToAll(morski,"!!!!!! Do wszystkich jednostek !!!!");
SendClientMessageToAll(morskazielen,"Po?ar przy {93FFEA}Caligula's Casino w {3500FF}Las Venturas.");
Dodajemy byle jak? map ikon?.Dobra to ju? jest.Mamy kolejne wezwanie i tu si? pytam jak mo?na usun?? t? map ikon? pierwsz? i ?eby na jej miejsce wesz?a ikona z drugiego wezwania(pierwsze wezwanie,pojawia si? pierwsza ikona,drugie wezwanie,usuwa si? pierwsza ikona i pojawia si? druga ikona z drugiego wezwania).
Za pomoc piwko
PS.Oczywi?cie w tej funkcji b?d? obiekty ale wiem jak je usun??.
Wysłany: 2011-12-31, 19:01
CodeR
Programista
Wiek: 31 Na forum: 6595 dni Posty: 70
Piwa : 1461
Chodzi o usuwanie ikonek z mapy, tak?
SetPlayerMapIcon(playerid, iconid, x, y, z, markertype, color, style);
Gdzie pod iconid definiujesz identyfikator ikonki, niezb?dny przy jej usuwaniu. Identyfikatory ikon nie powinny si? powtarza?, je?li chcesz je usuwa?.
Teraz odpowiednio do tego stosujesz funkcj?:
RemovePlayerMapIcon(playerid, iconid);
Gdzie w iconid wpisujesz id ikony, kt?r? w?a?nie chcesz usun??. Po usuni?ciu tej, przypisz nast?pnej ikonce na mapie identyfikator ikony skasowanej. W ten spos?b zatoczysz k??ko i osi?gniesz po??dany efekt.
Pozdrawiam.
Wysłany: 2012-01-01, 12:57
paskal
gtaoffline.pl
Wiek: 29 Na forum: 5644 dni Posty: 242
Piwa : 341
Ok.Mam tak:
Kod: public Pozary()
{
switch(random(5))
{
case 0:
{
SendClientMessageToAll(morski,"!!!!!! Do wszystkich jednostek !!!!");
SendClientMessageToAll(morskazielen,"Po?ar przy {93FFEA}Caligula's Casino w {3500FF}Las Venturas.");
SetPlayerMapIcon(playerid, 11, -1324.9995,-575.5543,14.1484, 56,1,MAPICON_GLOBAL); //Sf-Lot
}
case 1:
{
SendClientMessageToAll(morski,"!!!!!! Do wszystkich jednostek !!!!");
SendClientMessageToAll(morskazielen,"Po?ar przy {93FFEA}domu Johnson'?w w {3500FF}Los Santos.");
SetPlayerMapIcon(playerid, 12, -1324.9995,-575.5543,14.1484, 56,1,MAPICON_GLOBAL); //Sf-Lot
}
case 2:
{
SendClientMessageToAll(czerwony,"!!!!!! Do wszystkich jednostek !!!!");
SendClientMessageToAll(morskazielen,"Po?ar przy {93FFEA}Wang Cars w {3500FF}San Fierro.");
}
case 3:
{
SendClientMessageToAll(czerwony,"!!!!!! Do wszystkich jednostek !!!!");
}
case 4:
{
SendClientMessageToAll(czerwony,"!!!!!! Do wszystkich jednostek !!!!");
}
}
return 1;
}
To gdzie mam da?:
Kod: RemovePlayerMapIcon(playerid, 56);
i ?eby to ca?y czas si? tak zmienia?o(pozycja punktu).
Wysłany: 2012-01-01, 13:01
CRX
Wiek: 34 Na forum: 5671 dni Posty: 114
Piwa : 106
Pawn public Pozary ()
{
switch( random ( 5 ))
{
case 0 :
{
SendClientMessageToAll ( morski , "!!!!!! Do wszystkich jednostek !!!!" );
SendClientMessageToAll ( morskazielen , "Po?ar przy {93FFEA}Caligula's Casino w {3500FF}Las Venturas." );
RemovePlayerMapIcon ( playerid , 56 );
SetPlayerMapIcon ( playerid , 11 , - 1324.9995 ,- 575.5543 , 14.1484 , 56 , 1 , MAPICON_GLOBAL ); //Sf-Lot
}
case 1 :
{
SendClientMessageToAll ( morski , "!!!!!! Do wszystkich jednostek !!!!" );
SendClientMessageToAll ( morskazielen , "Po?ar przy {93FFEA}domu Johnson'?w w {3500FF}Los Santos." );
RemovePlayerMapIcon ( playerid , 56 );
SetPlayerMapIcon ( playerid , 12 , - 1324.9995 ,- 575.5543 , 14.1484 , 56 , 1 , MAPICON_GLOBAL ); //Sf-Lot
}
case 2 :
{
SendClientMessageToAll ( czerwony , "!!!!!! Do wszystkich jednostek !!!!" );
SendClientMessageToAll ( morskazielen , "Po?ar przy {93FFEA}Wang Cars w {3500FF}San Fierro." );
RemovePlayerMapIcon ( playerid , 56 );
//Tutaj SetPlayerMapIcon
}
case 3 :
{
SendClientMessageToAll ( czerwony , "!!!!!! Do wszystkich jednostek !!!!" );
RemovePlayerMapIcon ( playerid , 56 );
//Tutaj SetPlayerMapIcon
}
case 4 :
{
SendClientMessageToAll ( czerwony , "!!!!!! Do wszystkich jednostek !!!!" );
RemovePlayerMapIcon ( playerid , 56 );
//Tutaj SetPlayerMapIcon
}
}
return 1 ;
}
Tagi: pożary :: dla :: straży
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: