Jump to content

Question

Posted

Salut, am o problema la wanted. Am un gm si daca de ex: intri intr-o masina de politie iti da wanted 1 daca imi dau kill steluta ramane acolo sub bani dar lvl wantedul dispare. Cum pot sa fac sa ramana wantedul intact chiar daca iesi din joc sau mori? Multumesc anticipat

3 answers to this question

Recommended Posts

Posted

Explica mai indetaliat ce si cum. Daca folosesti Godfather, posteaza in topicul pentru ajutor godfather. Daca nu, pune aici comenzile si/sau callbackurile care actualizeaza si scriu informatii.

Posted

Explica mai indetaliat ce si cum. Daca folosesti Godfather, posteaza in topicul pentru ajutor godfather. Daca nu, pune aici comenzile si/sau callbackurile care actualizeaza si scriu informatii.

if(newstate == PLAYER_STATE_SPAWNED)

{

new Float: lwx, Float:lwy, Float:lwz;

GetPlayerPos(playerid, lwx, lwy, lwz);

if((lwz > 530.0 && PlayerInfo[playerid][pInt] == 0) || PlayerToPoint(1000.0, playerid, -1041.9,-1868.4,79.1)) //the highest land point in sa = 526.8

{

SetPlayerSpawn(playerid);

}

if(WantedPoints[playerid] > 0)

{

    new dstring[128];

new wanted = WantedPoints[playerid];

new diecash = 0;

    while(WantedPoints[playerid] > 0)

    {

        diecash += 100;

        WantedPoints[playerid] --;

    }

    format(dstring, sizeof(dstring), "You lost $%d for dieing with %d Wanted Points.", diecash, wanted);

    SendClientMessage(playerid, COLOR_YELLOW, dstring);

    GivePlayerMoney(playerid, - diecash);

    PlayerInfo[playerid][pWantedDeaths] += 1;

}

Guest
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.