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

Wysłany: 2013-10-18, 13:05


PvF.GreeN







Wiek: 28
Na forum: 4672 dni
Posty: 209
Nick w MP: NexuS

Piwa: 2875

Respekt: 128
Respekt: 128

Ostrzeżeń: 60%
Witam mam taki problem ;c Co jaki? czas dzieje si? tak, ?e jak jestem ko?o innego gracza..To pokazuje si? nad jego g?ow? klepsydra. Klepsydra pokazuje, ?e gracz nacisn?? "ESC". Ale on wcale tego nie naciska :x A pokazuje klepsydra..Pomo?e mi kto? to naprawi? :) Za pomoc mog? wys?a? SMS-a wysoko?? 11z? :+: :piwo:

Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-10-18, 14:46


Sillence







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

Piwa: 1517

Respekt: 416,3
Respekt: 416,3

PvF.GreeN, Porusza si? po mapie a klepsydra mu si? pokazuje pod nickiem ?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-10-18, 14:50


PvF.GreeN







Wiek: 28
Na forum: 4672 dni
Posty: 209
Nick w MP: NexuS

Piwa: 2875

Respekt: 128
Respekt: 128

Ostrzeżeń: 60%
Sillence, Tak.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-10-18, 14:56


Sillence







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

Piwa: 1517

Respekt: 416,3
Respekt: 416,3

PvF.GreeN, Moim zdaniem to b??d w SAMP'ie. I nie mam poj?cia czy da si? go jako? naprawi?.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-10-18, 14:59


PvF.GreeN







Wiek: 28
Na forum: 4672 dni
Posty: 209
Nick w MP: NexuS

Piwa: 2875

Respekt: 128
Respekt: 128

Ostrzeżeń: 60%
]Ale dlaczego akurat to jest na moim skrypcie ? :x A na innych serwerach normalnie :) Mo?e pope?ni?em gdzie? b??d w kodzie :x Ale nie znajd? go bo ju? mam 23k linijek ;c

Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-10-18, 15:36


ToxiC.







Wiek: 28
Na forum: 5246 dni
Posty: 3792

Piwa: 8590

Respekt: 1143,8
Respekt: 1143,8

Mo?e ten kto? poprostu ma lagi i mu si? pojawia ta klepsydra bo u mnie podobnie by?o :)

Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-10-18, 15:41


PvF.GreeN







Wiek: 28
Na forum: 4672 dni
Posty: 209
Nick w MP: NexuS

Piwa: 2875

Respekt: 128
Respekt: 128

Ostrzeżeń: 60%
Oldschool, No mo?e i tak ale to pojawia si? ka?demu z kim gram co jaki? czas.. :x

Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-10-18, 15:50


Combacior







Wiek: 29
Na forum: 5795 dni
Posty: 1516

Piwa: 2161

Respekt: 1060
Respekt: 1060

Ostrzeżeń: 20%
Podaj kod z callbacku OnPlayerUpdate

Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-10-18, 15:56


PvF.GreeN







Wiek: 28
Na forum: 4672 dni
Posty: 209
Nick w MP: NexuS

Piwa: 2875

Respekt: 128
Respekt: 128

Ostrzeżeń: 60%
Combacior,
Kod:

public OnPlayerUpdate(playerid)
{
if (GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
{
new Float:vec[3];
GetPlayerCameraFrontVector(playerid, vec[0], vec[1], vec[2]);
new bool:possible_crasher = false;
for (new i = 0; !possible_crasher && i < sizeof(vec); i++)
if (floatabs(vec[i]) > 10.0)
possible_crasher = true;

if (possible_crasher)
return 0; //do not send fake data, prevents crash
}

if(GetVehicleSpeed(GetPlayerVehicleID(playerid)) > 1000)
{
new string[256];
format(string,128,"{A40000}Gracz {FFFFFF}%s {A40000}zosta? zbanowany.Pow?d: Speed Hack.",PlayerName(playerid));
SendClientMessageToAll(-1,string);
format(string,sizeof(string),"Zosta?e?/a? zbanowany/a.Pow?d: Speed Hack." );
SendClientMessage(playerid, 0xffffffff,string);
SetTimerEx("banEx", 500, false, "d", playerid);
}

if(laser[playerid] == true)
{
RemovePlayerAttachedObject(playerid, 0);
if(IsPlayerInAnyVehicle(playerid) || IsPlayerInWater(playerid)) return 1;
new weap = GetPlayerWeapon(playerid);

switch(weap)
{
case 30: // ak-47
{
if(IsPlayerAiming(playerid))
{
if(GetPlayerSpecialAction(playerid) != SPECIAL_ACTION_DUCK)
SetPlayerAttachedObject(playerid, 0, laserKolor[playerid], 6, 0.628249, -0.027766, 0.078052, -6.621746, 352.552642, 355.084289);
else
SetPlayerAttachedObject(playerid, 0, laserKolor[playerid], 6, 0.628249, -0.027766, 0.078052, -1.621746, 356.202667, 355.084289);
}
else
{
if(GetPlayerSpecialAction(playerid) != SPECIAL_ACTION_DUCK)
SetPlayerAttachedObject(playerid, 0, laserKolor[playerid], 6, 0.663249, -0.02976, 0.080051, -11.131746, 358.302734, 353.384216);
else
SetPlayerAttachedObject(playerid, 0, laserKolor[playerid], 6, 0.663249, -0.02976, 0.080051, -11.131746, 358.302734, 353.384216);
}
}
case 31: // m4
{
if(IsPlayerAiming(playerid))
{
if(GetPlayerSpecialAction(playerid) != SPECIAL_ACTION_DUCK)
SetPlayerAttachedObject(playerid, 0, laserKolor[playerid], 6, 0.528249, -0.020266, 0.068052, -6.621746, 352.552642, 355.084289);
else
SetPlayerAttachedObject(playerid, 0, laserKolor[playerid], 6, 0.528249, -0.020266, 0.068052, -1.621746, 356.202667, 355.084289);
}
else
{
if(GetPlayerSpecialAction(playerid) != SPECIAL_ACTION_DUCK)
SetPlayerAttachedObject(playerid, 0, laserKolor[playerid], 6, 0.503249, -0.02376, 0.065051, -11.131746, 357.302734, 354.484222);
else
SetPlayerAttachedObject(playerid, 0, laserKolor[playerid], 6, 0.503249, -0.02376, 0.065051, -11.131746, 357.302734, 354.484222);
}
}
}
}
return 1;
}


Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-10-19, 12:58


Douglas00







Wiek: 30
Na forum: 4714 dni
Posty: 24

Piwa: 874

Respekt: 69,8

Ostrzeżeń: 20%
Kod:

if(GetVehicleSpeed(GetPlayerVehicleID(playerid)) > 1000)
{
new string[256];
format(string,128,"{A40000}Gracz {FFFFFF}%s {A40000}zosta? zbanowany.Pow?d: Speed Hack.",PlayerName(playerid));
SendClientMessageToAll(-1,string);
format(string,sizeof(string),"Zosta?e?/a? zbanowany/a.Pow?d: Speed Hack." );
SendClientMessage(playerid, 0xffffffff,string);
SetTimerEx("banEx", 500, false, "d", playerid);
}


Maksymalna pr?dko?? pojazdu w SA:MP, to ok. 250, tak?e je?eli masz dobry skrypt, kt?ry zlicza pr?dko?ci, to mo?esz ?mia?o zmieni? na 300.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-10-19, 23:12


Pr0f3ssi0n4LisT







Wiek: 25
Na forum: 6845 dni
Posty: 120

Piwa: 3653

Respekt: 117,8
Respekt: 117,8

Crasher vectorem celownika zostal juz "zabezpieczony" w najnowszej wersji samp takze smialo mozesz usunac swoja "klepsydre" z gry i zrob update serwera jesli jeszcze jakims cudem nie masz R2 a chodzi o usuniecie tego

Kod:

if (GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
{
new Float:vec[3];
GetPlayerCameraFrontVector(playerid, vec[0], vec[1], vec[2]);
new bool:possible_crasher = false;
for (new i = 0; !possible_crasher && i < sizeof(vec); i++)
if (floatabs(vec[i]) > 10.0)
possible_crasher = true;

if (possible_crasher)
return 0; // raz na jakis czas wali bledne info a co za tym idzie pokazuje klepsydre
}


Postaw piwo autorowi tego posta
 

 
Tagi: klepsydra
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






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