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

Wysłany: 2012-06-21, 18:18


kamisnnn







Wiek: 40
Na forum: 5537 dni
Posty: 36

Piwa: 8

Respekt: 45,3

A wi?c tak mam w pewnej mapie system przedmiot?w wszystko ?adnie cacy tylko, ?e jak zak?adam przedmiot np. kask motorowerowy na g?ow? to on pojawia si? mo?e na 1s i od razu znika, Wie kto? mo?e czym jest to spowodowane? Za pomoc z g?ry thx.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-06-22, 10:12


Shakur_33

yeah






Wiek: 33
Na forum: 6420 dni
Posty: 11
Nick w MP: Raul Shakur

Piwa: 1534

Respekt: 50

Bez kodu nic nie zdzia?amy. Poka? chocia? kod na za?o?enie przedmiot?w.

Podpis
Mapa serwera Metropolis RP

NIE POMAGAM POZA FORUM
Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-06-22, 13:28


kamisnnn







Wiek: 40
Na forum: 5537 dni
Posty: 36

Piwa: 8

Respekt: 45,3

Cytat:

format(String, sizeof(String),"* "ME"(%d) %s "JA"wyjmuje i zak?ada na g?ow? przedmiot. ( %s )",playerid,Nick[playerid],NazwaPrzedmiot[id]);
WyswietlText(playerid,KOLOR_JA,10.0,String);
switch(PlayerInfo[playerid][pCzapka])
{
case 18927,18932,18934,18941,18958:
{
if(!IsPlayerAttachedObjectSlotUsed(playerid,0))
{
SetPlayerAttachedObject(playerid,0,PlayerInfo[playerid][pCzapka],2,0.149999,0.001000,-0.009999,0.000000,0.000000,0.000000);
return 1;
}
if(!IsPlayerAttachedObjectSlotUsed(playerid,1))
{
SetPlayerAttachedObject(playerid,1,PlayerInfo[playerid][pCzapka],2,0.149999,0.001000,-0.009999,0.000000,0.000000,0.000000);
return 1;
}
if(!IsPlayerAttachedObjectSlotUsed(playerid,2))
{
SetPlayerAttachedObject(playerid,2,PlayerInfo[playerid][pCzapka],2,0.149999,0.001000,-0.009999,0.000000,0.000000,0.000000);
return 1;
}
if(!IsPlayerAttachedObjectSlotUsed(playerid,3))
{
SetPlayerAttachedObject(playerid,3,PlayerInfo[playerid][pCzapka],2,0.149999,0.001000,-0.009999,0.000000,0.000000,0.000000);
return 1;
}
if(!IsPlayerAttachedObjectSlotUsed(playerid,4))
{
SetPlayerAttachedObject(playerid,4,PlayerInfo[playerid][pCzapka],2,0.149999,0.001000,-0.009999,0.000000,0.000000,0.000000);
return 1;
}
return 1;
}
case 18891,18892,18893,18894,18895,18899,18906:
{
if(!IsPlayerAttachedObjectSlotUsed(playerid,0))
{
SetPlayerAttachedObject(playerid,0,PlayerInfo[playerid][pCzapka],2,0.149999,0.000000,-0.004999,90.000000,540.000000,450.000000);
return 1;
}
if(!IsPlayerAttachedObjectSlotUsed(playerid,1))
{
SetPlayerAttachedObject(playerid,1,PlayerInfo[playerid][pCzapka],2,0.149999,0.000000,-0.004999,90.000000,540.000000,450.000000);
return 1;
}
if(!IsPlayerAttachedObjectSlotUsed(playerid,2))
{
SetPlayerAttachedObject(playerid,2,PlayerInfo[playerid][pCzapka],2,0.149999,0.000000,-0.004999,90.000000,540.000000,450.000000);
return 1;
}
if(!IsPlayerAttachedObjectSlotUsed(playerid,3))
{
SetPlayerAttachedObject(playerid,3,PlayerInfo[playerid][pCzapka],2,0.149999,0.000000,-0.004999,90.000000,540.000000,450.000000);
return 1;
}
if(!IsPlayerAttachedObjectSlotUsed(playerid,4))
{
SetPlayerAttachedObject(playerid,4,PlayerInfo[playerid][pCzapka],2,0.149999,0.000000,-0.004999,90.000000,540.000000,450.000000);
return 1;
}
return 1;
}
case 18921,18922,18923:
{
if(!IsPlayerAttachedObjectSlotUsed(playerid,0))
{
SetPlayerAttachedObject(playerid,0,PlayerInfo[playerid][pCzapka],2,0.159999,0.000000,0.000000,0.000000,0.000000,0.000000);
return 1;
}
if(!IsPlayerAttachedObjectSlotUsed(playerid,1))
{
SetPlayerAttachedObject(playerid,1,PlayerInfo[playerid][pCzapka],2,0.159999,0.000000,0.000000,0.000000,0.000000,0.000000);
return 1;
}
if(!IsPlayerAttachedObjectSlotUsed(playerid,2))
{
SetPlayerAttachedObject(playerid,2,PlayerInfo[playerid][pCzapka],2,0.159999,0.000000,0.000000,0.000000,0.000000,0.000000);
return 1;
}
if(!IsPlayerAttachedObjectSlotUsed(playerid,3))
{
SetPlayerAttachedObject(playerid,3,PlayerInfo[playerid][pCzapka],2,0.159999,0.000000,0.000000,0.000000,0.000000,0.000000);
return 1;
}
if(!IsPlayerAttachedObjectSlotUsed(playerid,4))
{
SetPlayerAttachedObject(playerid,4,PlayerInfo[playerid][pCzapka],2,0.159999,0.000000,0.000000,0.000000,0.000000,0.000000);
return 1;
}
return 1;
}
case 18639,18944,18945,18948,18949,18950,189651:
{
if(!IsPlayerAttachedObjectSlotUsed(playerid,0))
{
SetPlayerAttachedObject(playerid,0,PlayerInfo[playerid][pCzapka],2,0.189999,0.000000,0.000000,0.000000,0.000000,0.000000);
return 1;
}
if(!IsPlayerAttachedObjectSlotUsed(playerid,1))
{
SetPlayerAttachedObject(playerid,1,PlayerInfo[playerid][pCzapka],2,0.189999,0.000000,0.000000,0.000000,0.000000,0.000000);
return 1;
}
if(!IsPlayerAttachedObjectSlotUsed(playerid,2))
{
SetPlayerAttachedObject(playerid,2,PlayerInfo[playerid][pCzapka],2,0.189999,0.000000,0.000000,0.000000,0.000000,0.000000);
return 1;
}
if(!IsPlayerAttachedObjectSlotUsed(playerid,3))
{
SetPlayerAttachedObject(playerid,3,PlayerInfo[playerid][pCzapka],2,0.189999,0.000000,0.000000,0.000000,0.000000,0.000000);
return 1;
}
if(!IsPlayerAttachedObjectSlotUsed(playerid,4))
{
SetPlayerAttachedObject(playerid,4,PlayerInfo[playerid][pCzapka],2,0.189999,0.000000,0.000000,0.000000,0.000000,0.000000);
return 1;
}
return 1;
}
case 18645:
{
if(!IsPlayerAttachedObjectSlotUsed(playerid,0))
{
SetPlayerAttachedObject(playerid,0,PlayerInfo[playerid][pCzapka],2,0.099999,0.020000,0.000000,90.000000,90.000000,0.000000);
return 1;
}
if(!IsPlayerAttachedObjectSlotUsed(playerid,1))
{
SetPlayerAttachedObject(playerid,1,PlayerInfo[playerid][pCzapka],2,0.099999,0.020000,0.000000,90.000000,90.000000,0.000000);
return 1;
}
if(!IsPlayerAttachedObjectSlotUsed(playerid,2))
{
SetPlayerAttachedObject(playerid,2,PlayerInfo[playerid][pCzapka],2,0.099999,0.020000,0.000000,90.000000,90.000000,0.000000);
return 1;
}
if(!IsPlayerAttachedObjectSlotUsed(playerid,3))
{
SetPlayerAttachedObject(playerid,3,PlayerInfo[playerid][pCzapka],2,0.099999,0.020000,0.000000,90.000000,90.000000,0.000000);
return 1;
}
if(!IsPlayerAttachedObjectSlotUsed(playerid,4))
{
SetPlayerAttachedObject(playerid,4,PlayerInfo[playerid][pCzapka],2,0.099999,0.020000,0.000000,90.000000,90.000000,0.000000);
return 1;
}
return 1;
}
case 18936,18937,18938:
{
if(!IsPlayerAttachedObjectSlotUsed(playerid,0))
{
SetPlayerAttachedObject(playerid,0,PlayerInfo[playerid][pCzapka],2,0.129999,0.019999,0.000000,360.000000,0.000000,0.000000);
return 1;
}
if(!IsPlayerAttachedObjectSlotUsed(playerid,1))
{
SetPlayerAttachedObject(playerid,1,PlayerInfo[playerid][pCzapka],2,0.129999,0.019999,0.000000,360.000000,0.000000,0.000000);
return 1;
}
if(!IsPlayerAttachedObjectSlotUsed(playerid,2))
{
SetPlayerAttachedObject(playerid,2,PlayerInfo[playerid][pCzapka],2,0.129999,0.019999,0.000000,360.000000,0.000000,0.000000);
return 1;
}
if(!IsPlayerAttachedObjectSlotUsed(playerid,3))
{
SetPlayerAttachedObject(playerid,3,PlayerInfo[playerid][pCzapka],2,0.129999,0.019999,0.000000,360.000000,0.000000,0.000000);
return 1;
}
if(!IsPlayerAttachedObjectSlotUsed(playerid,4))
{
SetPlayerAttachedObject(playerid,4,PlayerInfo[playerid][pCzapka],2,0.129999,0.019999,0.000000,360.000000,0.000000,0.000000);
return 1;
}
return 1;
}
}
return 1;


To jest kod do kasku, czapki itp.

[ Dodano: 2012-07-05, 15:29 ]
Referesh, Prosz? kogo? o pomoc bo pierwszy raz mam z takim czym? problem.

Postaw piwo autorowi tego posta
 

 
Tagi: system :: przedmiotów
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » PAWN » [GF] System przedmiotów 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