Jump to content
  • 0

Bug wanted !




Am problema urmatoare si nustiu de unde vine problema.

Daca sunt cop si omor un suspect cu wanted nu il baga in jail il respawneaza normal.

Help please:

GivePlayerMoney(playerid, - price);

PlayerInfo[playerid][pWantedDeaths] += 1;

PlayerInfo[playerid][pJailed] = 1;

    PlayerInfo[playerid][pJailTime] = (WantedLevel[playerid])*(300);

    format(string, sizeof(string), "* You are in Jail for %d Seconds and lose $%d because of running away and getting shot by the Officer.", PlayerInfo[playerid][pJailTime], price);

    SendClientMessage(playerid, COLOR_LIGHTRED, string);

    WantedPoints[playerid] = 0;

WantedLevel[playerid] = 0;

TextDrawShowForPlayer(playerid, Textdraw1[playerid]);




Te-am ajutat cu ceva? Da-mi un POZITIV !

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

Dupa cum vad tu ai functia buna doar ca nu ti-ai definit cateva lucruri , deci

PlayerInfo[playerid][pJailed] = 1;
Arata ca atunci cand il omori jucatorul se va duce in inchisoare care ai setato tu deasta este cu '1' iar daca era cu '0' , playerul nu se mai ducea in jail. Acum tu trebuie sa setezi coordonatele de la pJailed
	if(PlayerInfo[playerid][pJailed] == 1)
                SetPlayerWantedLevel(playerid, 0);
	        SetPlayerInterior(playerid, 3);
		return 1;

Link to comment
Share on other sites

comanda /invite, are setteam 2 :) doar la lideri trebuie sa dai setteam, sau ca sa fie mai usor dai la /makeleader sa dea direct setteam 2 ! PlayerInfo[playerid][pTeam] = 2;

@ BuBu, nu asta era problema

Arthur cred ca n-am inteles eu, el se refera atunci  cand un cop omoara un suspect cu wanted nu il baga in jail ci il da la spawn normal. La asta s-a referit el sau gresesc eu? Daca la asta se referea ce i-am spus eu cu pJail ar trebui sa functioneze.

Deoarece atunci cand omori un suspect cu wanted intervine pJail cu functiile sale (scade wantedu si il reseteaza, il baga in interior si il duce la coordonatele x,y,z)

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Create New...

Important Information

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.