- 0
Intrebare
-
Similar Content
-
- 1 reply
- 267 views
-
- 3 replies
- 405 views
-
- 2 replies
- 191 views
-
- 3 replies
- 636 views
-
- 4 replies
- 416 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
Bogdan's
Problemă întâlnită (descriere): Cum as putea sa fac ca atunci cand mor sa pun un timmer de 5 minute dar caracterul sa ramana tot in locul in care a fost omorat,iar dupa acele 5 minute trecute sa il bage la spital + sa ii arate timpul in secunde.
2.Cand masina ajunge la 400hp sa nu ia foc,sa ramana blocata,ex daca dai din nou /engine si masina are 400hp sa ii trimita mesaj ca masina este distrusa,contacteaza un mecanic?
Ero(area / rile) / warning-(ul / urile):-
Liniile de cod / sursa / script-ul:La omorare playerul il baga direct in spital,eu vreau sa fac sa il dea prima data la locul unde a fost omorat.
[pawn]if(MedicBill[playerid] == 1 && PlayerInfo[playerid][pJailed] == 0)
{
if(FirstSpawn[playerid] != 1)
{
PlayerInfo[playerid][pDeaths] += 1;
SetPlayerHealth(playerid, 99.0);
SetPlayerInterior(playerid, 0);
PlayerInfo[playerid][pInt] = 0;
SetPlayerVirtualWorld(playerid, 1);
SetPlayerPos(playerid, 1235.3085,326.3891,-11.7422);
SetPlayerFacingAngle(playerid, 151.3780);
TogglePlayerControllable(playerid, 1);
PlayerInfo[playerid][pInvWeapon] = 0;
PlayerInfo[playerid][pInvAmmo] = 0;
SetPlayerSkin(playerid, 144);
GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~w~Esti in coma la spital.Iti revii incet.", 30000, 3);
JustDied[playerid] = 1;
FreezeThenAutoUnfreeze(playerid, 20000)// time is in Milliseconds, to make the player controllable again.
MedicTime[playerid] = 1;
PlayerInfo[playerid][pMedic] = 1;
if(PlayerInfo[playerid][pMedic] == 1)
{
if(PlayerInfo[playerid][pDonateRank] > 0)
{
NeedMedicTime[playerid] = 60;
}
else
{
NeedMedicTime[playerid] = 120;
}
}
return 1;
}
}
if(JustDied[playerid] == 1)
{
if(GetPlayerVirtualWorld(playerid) != 0 || PlayerInfo[playerid][pVirWorld] != 0)
{
SetPlayerVirtualWorld(playerid, 0);
PlayerInfo[playerid][pVirWorld] = 0;
}
SetPlayerPos(playerid, 1170.5839,533.1086,20.8119);
SetPlayerFacingAngle(playerid, 331.6384);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
return 1;
}[/pawn]
Imagini / Video (optional):
Aţi încercat să rezolvaţi singur?:
Link to comment
Share on other sites
19 answers to this question
Recommended Posts