How can I have a minimum of score?
#1

I want the score to stop decrease when it has reached 0 but I dont know how to script it, could someone help please?
Reply
#2

This ??
pawn Код:
if(GetPlayerScore(playerid) == 0)
{
SetPlayerScore(playerid,0);
}
Reply
#3

Quote:
Originally Posted by Shabi RoxX
Посмотреть сообщение
This ??
pawn Код:
if(GetPlayerScore(playerid) == 0)
{
SetPlayerScore(playerid,0);
}
So its that easy ty
Reply
#4

Aha I see ty for helping
But where in the pawn code should I put in this?
Reply
#5

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    //code here
    return 1;
}
Reply
#6

Quote:
Originally Posted by Ironboy
Посмотреть сообщение
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    //code here
    return 1;
}
Thanks alot

Tested and works.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)