Započeo Skorpija_026
•26. Mar. 2022.Oko weapon-config returnovanje skina CJ-a f4
728
pregleda
9
postova
Made Man
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
137 / 250 XP
Početnik(0)
387
Postovi:
39
Teme:
Pridružio se:Feb. 2016
26. Mar. 2022.
Problem(error/warning): Ovako igrac koji god klikne f4 nakon smrti dobije CJ i on je besmrtan probao sam i da OnPlayerRequestClass clearam animaciju i setam HP 0 ali ne pomaze nista, takodje i na smrti sam isto to probao i opet ne radi OnPlayerDeath, Ne znam vise stvarno sta bi odradio
Deo skripte: Include , Weapon Config
Pawno Code:
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log):
Pawno Code:
Deo skripte: Include , Weapon Config
Pawno Code:
public OnPlayerRequestClass(playerid, classid)
{
DebugMessage(playerid, "Requested class: %d", classid);
if (s_DeathSkip) {
DebugMessage(playerid, "Skipping death - class selection skipped");
SpawnPlayer(playerid);
SetPlayerHealth(playerid, 0.0);
ClearAnimations(playerid);
return 0;
}
if (s_ForceClassSelection) {
s_ForceClassSelection = false;
}
if (s_BeingResynced) {
s_TrueDeath = false;
SpawnPlayerInPlace(playerid);
SetPlayerHealth(playerid, 0.0);
ClearAnimations(playerid);
return 0;
}
if (s_DeathTimer != -1) {
KillTimer(s_DeathTimer);
s_DeathTimer = -1;
}
if (s_IsDying) {
OnPlayerDeathFinished(playerid, false);
s_IsDying = false;
}
FreezeSyncPacket(playerid, .toggle = false);
UpdatePlayerVirtualWorld(playerid);
if (s_TrueDeath) {
if (!s_InClassSelection) {
DebugMessage(playerid, "True death class selection");
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
RemoveBuildingForPlayer(playerid, 1484, x, y, z, 350.0),
RemoveBuildingForPlayer(playerid, 1485, x, y, z, 350.0),
RemoveBuildingForPlayer(playerid, 1486, x, y, z, 350.0);
s_InClassSelection = true;
SetPlayerHealth(playerid, 0.0);
ClearAnimations(playerid);
}
if (WC_OnPlayerRequestClass(playerid, classid)) {
s_PlayerClass = classid;
return 1;
} else {
return 0;
}
} else {
DebugMessage(playerid, "Not true death - being respawned");
s_ForceClassSelection = true;
SpawnPlayerInPlace(playerid);
return 0;
}
}public OnPlayerDeath(playerid, killerid, reason)
{
s_TrueDeath = true;
s_InClassSelection = false;
SetPlayerHealth(playerid, 0.0);
ClearAnimations(playerid);Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log):
Pawno Code:
Made Man
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
137 / 250 XP
Početnik(0)
387
Postovi:
39
Teme:
Pridružio se:Feb. 2016
26. Mar. 2022.
Fr0z3n wrote on March 26, 2022, 2:46 pm:
a sta f4 dugme radi?
Crime Lord
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
240 / 250 XP
Početnik(0)
964
Postovi:
65
Teme:
Pridružio se:Dec. 2019
26. Mar. 2022.
Ne znam sad ovako na suvo, najosnovnije nesto sto moze biti jeste da timer proveri posle 5 sec nakon umiranja da li imas cj skin/da li ti je hp u minusu, ako jeste opet kill...
Made Man
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
137 / 250 XP
Početnik(0)
387
Postovi:
39
Teme:
Pridružio se:Feb. 2016
26. Mar. 2022.
Fr0z3n wrote on March 26, 2022, 6:02 pm:
Ne znam sad ovako na suvo, najosnovnije nesto sto moze biti jeste da timer proveri posle 5 sec nakon umiranja da li imas cj skin/da li ti je hp u minusu, ako jeste opet kill...
Made Man
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
419
Postovi:
45
Teme:
Pridružio se:Sep. 2020
26. Mar. 2022.
Skorpija_026 wrote on March 26, 2022, 3:05 pm:
class nmp ni ja ali pre nego sto me killa neko kliknem f4 i fobijem cj skin i bukv besmrtan
F4 Allows you to select a new class upon your next death.
Made Man
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
137 / 250 XP
Početnik(0)
387
Postovi:
39
Teme:
Pridružio se:Feb. 2016
26. Mar. 2022.
A L M E X wrote on March 26, 2022, 8:05 pm:
F4 Allows you to select a new class upon your next death.
Made Man
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
137 / 250 XP
Početnik(0)
387
Postovi:
39
Teme:
Pridružio se:Feb. 2016
Made Man
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
137 / 250 XP
Početnik(0)
387
Postovi:
39
Teme:
Pridružio se:Feb. 2016
Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava