#1

Please How to make a Credits System.
Exemple: When Player Want Shop a Weapon they Said u Don't have Enought Credits And When he Kill players he get 2 credits per kill Please help
Reply
#2

Thi is the conditional for money.
Код:
if(GetPlayerMoney(playerid) >= amount)
This is the function for give money when a player dies.
Код:
public OnPlayerDeath(playerid, killerid, reason)
{
if(killerid != INVALID_PLAYER_ID)
{
GivePlayerMoney(killerid, amount); // Change "amount" for the amount what you want give.
}
}
Reply
#3

Need Credits
Reply
#4

Quote:
Originally Posted by Jastak
Посмотреть сообщение
Thi is the conditional for money.
Код:
if(GetPlayerMoney(playerid) >= amount)
This is the function for give money when a player dies.
Код:
public OnPlayerDeath(playerid, killerid, reason)
{
if(killerid != INVALID_PLAYER_ID)
{
GivePlayerMoney(killerid, amount); // Change "amount" for the amount what you want give.
}
}
That what you should do for your request.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)