Jump to content
  • 0

Problema wanted


Scott_Williams

Question

3 answers to this question

Recommended Posts

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;

}

Link to comment
Share on other sites

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.