Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.

Wysłany: 2013-08-26, 20:06


Rumun







Wiek: 30
Na forum: 5235 dni
Posty: 316
Nick w MP: Rumun

Piwa: 25

Respekt: 69

Witam.Chcia?em by kto? pokaza? jak zrobi? cmd (w zcmd) kt?r? mo?na u?y? w danym interiorze.Oraz jak doda? inne interiory.Za pomoc piwko i respekt. ;)

Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-08-26, 20:13


Sillence







Wiek: 26
Na forum: 5157 dni
Posty: 1514
Nick w MP: Sillence

Piwa: 1517

Respekt: 416,3
Respekt: 416,3

Rumun, Prosta komenda + warunek:

Kod:

CMD:komenda(playerid, params[])
{
if(!GetPlayerInterior(playerid) == id_interioru)
{
SendClientMessage(playerid,-1,"Nie jeste? w interiorze!!");
return 1;
}
SendClientMessage(playerid,-1,"Jeste? w interiorze!");
return 1;
}


Pozdrawiam ;]

Ostatnio zmieniony przez Sillence 2013-08-27, 00:08, w całości zmieniany 1 raz  
Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-08-26, 21:06


Rumun







Wiek: 30
Na forum: 5235 dni
Posty: 316
Nick w MP: Rumun

Piwa: 25

Respekt: 69

A jak doda? by dzia?a?o w kilku interiorach ?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-08-26, 21:11


Sillence







Wiek: 26
Na forum: 5157 dni
Posty: 1514
Nick w MP: Sillence

Piwa: 1517

Respekt: 416,3
Respekt: 416,3

Rumun, Dajesz tak:
Kod:

CMD:komenda(playerid, params[])
{
if(!GetPlayerInterior(playerid) == id_interioru || id_interioru2 || id_interioru3)
{
SendClientMessage(playerid,-1,"Nie jeste? w interiorze!!");
return 1;
}
SendClientMessage(playerid,-1,"Jeste? w interiorze!");
return 1;
}


Pozdrawiam ;]

Ostatnio zmieniony przez Sillence 2013-08-27, 00:08, w całości zmieniany 1 raz  
Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-08-27, 00:05


IgrexolonO







Wiek: 34
Na forum: 6809 dni
Posty: 1386

Piwa: 1062

Respekt: 651,8
Respekt: 651,8Respekt: 651,8

"Sillence" napisał/a:

Rumun, Dajesz tak:
Kod:

CMD:komenda(playerid, params[])
{
if(GetPlayerInterior(playerid) == id_interioru || id_interioru2 || id_interioru3)
{
SendClientMessage(playerid,-1,"Nie jeste? w interiorze!!");
return 1;
}
SendClientMessage(playerid,-1,"Jeste? w interiorze!");
return 1;
}


Pozdrawiam ;]


Ja tam nie wiem ale to chyba raczej na odwr?t.. Bo je?li gracz jest w wyznaczonym interiorze to wy?wietli mu si? komunikat "Nie jeste? w interiorze", okey.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-08-28, 15:29


ourFarm







Wiek: 33
Na forum: 4663 dni
Posty: 28
Nick w MP: Stalker

Piwa: 6

Respekt: 50

Ja bym to napisa? nast?puj?co:

Kod:

CMD:komenda(playerid, params[])
{
new Interior = GetPlayerInterior(playerid);
if(Interior == INTERIOR_ID || Interior == INTERIOR_ID || Interior == INTERIOR_ID)
{
SendClientMessage(playerid, 0xFDAE33FF, "Jeste? w danym incie.");
}
else
{
SendClientMessage(playerid, 0xFDAE33FF, "Nie jeste? w danym incie.");
}
return 1;
}


Postaw piwo autorowi tego posta
 

 
Tagi: komenda :: która :: ....
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » PAWN Ten temat jest zablokowany bez możliwości zmiany postów lub pisania odpowiedzi

Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Dodaj temat do Ulubionych
Wersja do druku