#1

- 100$ money is going when you die
- reduction never get the money when he died
- How do I fix it
Reply
#2

show OnPlayerDeath Callback
Reply
#3

Show us
pawn Код:
public OnPlayerDeath
Reply
#4

100$ money is going when you die
reduction never get the money when he died
What if I do resolve
Reply
#5

You're sure this didn't work
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
new scor = GetPlayerScore(killerid);
GivePlayerMoney(playerid, -100);
GivePlayerMoney(killerid, 2000);
SetPlayerScore(killerid,scor+1);
SendDeathMessage(killerid, playerid, reason);
return 1;
}
Reply
#6

- 100$ money is going when you die
- money should not go
- How to resolve
Reply
#7

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
new scor = GetPlayerScore(killerid);
GivePlayerMoney(killerid, 2000);
SetPlayerScore(killerid,scor+1);
SendDeathMessage(killerid, playerid, reason);
return 1;
}
Reply
#8

Quote:
Originally Posted by Clad
Посмотреть сообщение
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
new scor = GetPlayerScore(killerid);
GivePlayerMoney(killerid, 2000);
SetPlayerScore(killerid,scor+1);
SendDeathMessage(killerid, playerid, reason);
return 1;
}
-100 Is going reduction of money when you die
Reply
#9

Quote:
Originally Posted by pors
Посмотреть сообщение
-100 Is going reduction of money when you die
Its scripted in gta use this function it will give +100 if you die like if you die you will -100 and you will get +100 so money wont go to -

Код:
GivePlayerMoney(playerid, 100);
Reply
#10

Quote:
Originally Posted by MrWupiazZzLT
Посмотреть сообщение
Its scripted in gta use this function it will give +100 if you die like if you die you will -100 and you will get +100 so money wont go to -

Код:
GivePlayerMoney(playerid, 100);
What if I add the code to fix it ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)