Wysłany: 2013-10-18, 13:05
PvF.GreeN
Wiek: 28 Na forum: 4672 dni Posty: 209
Nick w MP: NexuS
Piwa : 2875
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 A pokazuje klepsydra..Pomo?e mi kto? to naprawi? Za pomoc mog? wys?a? SMS-a wysoko?? 11z?
Wysłany: 2013-10-18, 14:46
Sillence
Wiek: 26 Na forum: 5157 dni Posty: 1514
Nick w MP: Sillence
Piwa : 1517
PvF.GreeN , Porusza si? po mapie a klepsydra mu si? pokazuje pod nickiem ?
Wysłany: 2013-10-18, 14:50
PvF.GreeN
Wiek: 28 Na forum: 4672 dni Posty: 209
Nick w MP: NexuS
Piwa : 2875
Wysłany: 2013-10-18, 14:56
Sillence
Wiek: 26 Na forum: 5157 dni Posty: 1514
Nick w MP: Sillence
Piwa : 1517
PvF.GreeN , Moim zdaniem to b??d w SAMP'ie. I nie mam poj?cia czy da si? go jako? naprawi?.
Wysłany: 2013-10-18, 14:59
PvF.GreeN
Wiek: 28 Na forum: 4672 dni Posty: 209
Nick w MP: NexuS
Piwa : 2875
]Ale dlaczego akurat to jest na moim skrypcie ? A na innych serwerach normalnie Mo?e pope?ni?em gdzie? b??d w kodzie Ale nie znajd? go bo ju? mam 23k linijek ;c
Wysłany: 2013-10-18, 15:36
ToxiC.
Wiek: 28 Na forum: 5246 dni Posty: 3792
Piwa : 8590
Mo?e ten kto? poprostu ma lagi i mu si? pojawia ta klepsydra bo u mnie podobnie by?o
Wysłany: 2013-10-18, 15:41
PvF.GreeN
Wiek: 28 Na forum: 4672 dni Posty: 209
Nick w MP: NexuS
Piwa : 2875
Oldschool , No mo?e i tak ale to pojawia si? ka?demu z kim gram co jaki? czas..
Wysłany: 2013-10-18, 15:50
Combacior
Wiek: 29 Na forum: 5795 dni Posty: 1516
Piwa : 2161
Podaj kod z callbacku OnPlayerUpdate
Wysłany: 2013-10-18, 15:56
PvF.GreeN
Wiek: 28 Na forum: 4672 dni Posty: 209
Nick w MP: NexuS
Piwa : 2875
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;
}
Wysłany: 2013-10-19, 12:58
Douglas00
Wiek: 30 Na forum: 4714 dni Posty: 24
Piwa : 874
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.
Wysłany: 2013-10-19, 23:12
Pr0f3ssi0n4LisT
Wiek: 25 Na forum: 6845 dni Posty: 120
Piwa : 3653
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
}
Tagi: klepsydra
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: