Jump to content
  • 0

bug money


Madu99

Question

Dupa ce faci misiunea primesti bani si dupa scad..

[pawn]#include <a_samp>

#define COLOR_DARKGOLD 0x808000AA

#define COLOR_RED 0xFF0000AA

#define COLOR_YELLOW 0xFFFF00AA

#define Checkpoint1 -256.0010,-1542.3809,3.9930

#define Checkpoint2 -231.8289,-1467.9810,4.9421

#define Checkpoint3 -193.9747,-1375.2502,4.7856

#define Checkpoint4 -246.0348,-1326.1063,8.9300

#define Checkpoint5 -407.1459,-1371.5518,23.6588

#define Checkpoint6 -564.7697,-1302.4977,22.5511

#define Checkpoint7 -569.0633,-1508.3352,9.1518

new combinejobrunning = 0;

new info;

forward GivePlayerOneExp(playerid);

public OnFilterScriptInit()

{

    AddStaticVehicleEx(532,-370.1018,-1463.1403,26.6953,287.0754,0,0,10); // combine 1

    AddStaticVehicleEx(532,-364.2571,-1479.7140,26.7041,285.6486,0,0,10); // combine 2

    AddStaticVehicleEx(532,-361.6030,-1501.2618,24.8698,285.8201,0,0,10); // combine 3

    info = CreatePickup(1239,1,-366.1941,-1440.3253,25.7266,-1);

}

public OnPlayerCommandText(playerid, cmdtext[])

{

if (strcmp("/combine", cmdtext, true, 10) == 0)

{

if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 532)

      {

            SetPlayerCheckpoint(playerid, Checkpoint1, 3.0);

            CreateObject(823,-256.0010,-1542.3809,3.9930,0,0,0);

combinejobrunning = 1;

        GameTextForPlayer(playerid, "~g~Ati inceput munca!!", 3000, 3);

            new name[MAX_PLAYER_NAME], string[48];

            GetPlayerName(playerid, name, sizeof(name));

            format(string, sizeof(string), "%s acum poti incepe munca.", name );

            SendClientMessageToAll(COLOR_RED, string);

return 1;

    }

SendClientMessage(playerid, COLOR_RED,"Trebuie sa fii într-un camion pentru a începe treaba");

}

if (strcmp("/combineinfo", cmdtext, true, 10) == 0)

{

    SendClientMessage(playerid, COLOR_YELLOW, "Ai nevoie de recolta buruienilor.");

    SendClientMessage(playerid, COLOR_YELLOW, "Tastati /combine si urmariti checkpointu`rile de culoare rosie.");

    SendClientMessage(playerid, COLOR_YELLOW, "Urmariti toate checkpointu`rile pentru a termina munca.");

return 1;

}

return 0;

}

public OnPlayerEnterCheckpoint(playerid)

{

if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 532)

  {

    if (IsPlayerInRangeOfPoint(playerid, 7.0,Checkpoint1))

    {

          SetPlayerCheckpoint(playerid, Checkpoint2, 7.0);

          CreateObject(823,-231.8289,-1467.9810,4.9421,0,0,0);

    }

    if (IsPlayerInRangeOfPoint(playerid, 7.0,Checkpoint2))

    {

          SetPlayerCheckpoint(playerid, Checkpoint3, 7.0);

          CreateObject(823,-193.9747,-1375.2502,4.7856,0,0,0);

    }

    if (IsPlayerInRangeOfPoint(playerid, 7.0,Checkpoint3))

    {

          SetPlayerCheckpoint(playerid, Checkpoint4, 7.0);

          CreateObject(823,-246.0348,-1326.1063,8.9300,0,0,0);

    }

    if (IsPlayerInRangeOfPoint(playerid, 7.0,Checkpoint4))

    {

          SetPlayerCheckpoint(playerid, Checkpoint5, 7.0);

          CreateObject(823,-407.1459,-1371.5518,23.6588,0,0,0);

    }

    if (IsPlayerInRangeOfPoint(playerid, 7.0,Checkpoint5))

    {

          SetPlayerCheckpoint(playerid, Checkpoint6, 7.0);

          CreateObject(823,-564.7697,-1302.4977,22.5511,0,0,0);

    }

    if (IsPlayerInRangeOfPoint(playerid, 7.0,Checkpoint6))

    {

          SetPlayerCheckpoint(playerid, Checkpoint7, 7.0);

  }

    if (IsPlayerInRangeOfPoint(playerid, 7.0,Checkpoint7))

    {

          GivePlayerMoney(playerid, 10000);

      GameTextForPlayer(playerid, "~g~Ai terminat treaba, si ai primit!", 3000, 3);

          SetVehicleToRespawn(2);

          combinejobrunning = 0;

          DisablePlayerCheckpoint(playerid);

    }

  }

}

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)

{

    if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 532)

    {

        SendClientMessage(playerid, COLOR_RED, "Putetei începe lucrarea tastati /combine");

    }

    return 0;

}

public OnPlayerExitVehicle(playerid, vehicleid)

{

if((combinejobrunning) == 1)

{

    combinejobrunning = 0;

    SendClientMessage(playerid, COLOR_RED, "Ati iesit din Combina.Daca doriti sa continuati munca intrati din nou.");

}else if((combinejobrunning) == 0){

//Nothing

}

}

public OnPlayerPickUpPickup(playerid, pickupid)

{

    if(pickupid == info)

{

    GameTextForPlayer(playerid, "~g~Bine ati venit la munca( combina, utilizati /combineinfo pentru mai multe dedatlii", 3000, 3);

}

}[/pawn]

Link to comment
Share on other sites

15 answers to this question

Recommended Posts

Se refera ca poate Anti-Cheatul tau poate sa blocheze banii sa se adauge la tine, deobicei este vorba de functiile respectivului Anti Cheat altfel nu te va lasa sa bagi bani...

Eu sunt nimeni. Dar prefer sa fiu un nimeni inconjurat de prieteni adevarati, decat un om faimos inconjurat de falsi.

Nu sunt un scripter perfect, nu sunt nici macar pe aproape, insa in in ciuda acestui fapt incerc sa invat sa le fac pe toate.

Link to comment
Share on other sites

stock GivePlayerCash(playerid, money)
{
    PlayerInfo[playerid][pCash] += money; //Ma rog aici modifici in functie de sistemul tau..la pCash ma refer.
    ResetMoneyBar(playerid);
    UpdateMoneyBar(playerid,PlayerInfo[playerid][pCash]);
    return PlayerInfo[playerid][pCash];
}

[glow=blue,2,300]SAMP.[glow=yellow,2,300]RSP-GAME[glow=red,2,300].NET[/glow][/glow][/glow]

Link to comment
Share on other sites

C:\Documents and Settings\mada\Desktop\combine.pwn(93) : error 029: invalid expression, assumed zero
C:\Documents and Settings\mada\Desktop\combine.pwn(93) : error 017: undefined symbol "money"
C:\Documents and Settings\mada\Desktop\combine.pwn(94) : warning 217: loose indentation
C:\Documents and Settings\mada\Desktop\combine.pwn(95) : error 017: undefined symbol "PlayerInfo"
C:\Documents and Settings\mada\Desktop\combine.pwn(95) : warning 215: expression has no effect
C:\Documents and Settings\mada\Desktop\combine.pwn(95) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\mada\Desktop\combine.pwn(95) : error 029: invalid expression, assumed zero
C:\Documents and Settings\mada\Desktop\combine.pwn(95) : fatal error 107: too many error messages on one line

Da eroare

Link to comment
Share on other sites

linia 93    [pawn]stock GivePlayerCash(playerid, money)[/pawn]

linia 94 [pawn]{[/pawn]

linia 95    [pawn]PlayerInfo[playerid][pCash] += money; //Ma rog aici modifici in functie de sistemul tau..la pCash ma refer.[/pawn]

Link to comment
Share on other sites

linia 93    [pawn]stock GivePlayerCash(playerid, money)[/pawn]

linia 94 [pawn]{[/pawn]

linia 95    [pawn]PlayerInfo[playerid][pCash] += money; //Ma rog aici modifici in functie de sistemul tau..la pCash ma refer.[/pawn]

//Ma rog aici modifici in functie de sistemul tau..la pCash ma refer. - inlocuiesti pCash cu variabila ta din GM

Massari e curva mea

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.