Money Problem
#1

http://pastebin.com/28gffk37

As soon as someone spawns they lose $100 i checked my script and cant see whats wrong can anyone help?
Reply
#2

You mean that they loost $100 after they have died then spawn?

if so, add
pawn Код:
GivePlayerMoney(playerid, 100);
under OnPlayerSpawn(playerid)

EDIT: at your post under here

Lets say you have $500.
You said you loose $100 at spwn right?

If you loose $100 at spawn and then you give the player $100 at spawn, how much will that be?

it will be $500 with other words, he didnt loose any money
Reply
#3

nop does not work it ends up giving them $100 instead
Reply
#4

Offcourse a player won't lose any money.. You haven't set the code for it..

pawn Код:
public OnPlayerSpawn(playerid)
{
        SetPlayerPos(playerid, 1544.220703125,-1352.8216552734,329.47515869141);
        SendClientMessage(playerid, 0xFFAE1CFF, "Do /Teamhelp to choose a team");
        SetPlayerHealth(playerid, 99999);
        return 1;
}
This is what you should do:

pawn Код:
public OnPlayerSpawn(playerid)
{
        SetPlayerPos(playerid, 1544.220703125,-1352.8216552734,329.47515869141);
        SendClientMessage(playerid, 0xFFAE1CFF, "Do /Teamhelp to choose a team");
        SetPlayerHealth(playerid, 99999);
        GivePlayerMoney(playerid, -100);
        return 1;
}
Reply
#5

its making the person lose money everytime with that ^
Reply
#6

Quote:
Originally Posted by muhib777
Посмотреть сообщение
its making the person lose money everytime with that ^
Isn't that what you want?
Reply
#7

no the problem is when someone spawn they get theyre cash gets reduced by $100
i dont know whats wrong i dont want that to happen
Reply
#8

prob some fs installed .. check all your fs and see if have some -100 money ^^
Reply
#9

It might be an FS..but on Default on Gta San Andreas and Samp you lose $100 for every respawn..
Reply
#10

Try this, since giving 100 back will end up giving 100, so probbably any GivePlayerMoney stops it:
pawn Код:
public OnPlayerSpawn(playerid)
{
    SetPlayerPos(playerid, 1544.220703125,-1352.8216552734,329.47515869141);
    SendClientMessage(playerid, 0xFFAE1CFF, "Do /Teamhelp to choose a team");
    SetPlayerHealth(playerid, 99999);
    GivePlayerMoney( playerid, 0 );
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)