How Would I Do A Setscore Command - DCMD Please?
#1

Ok i script in dcmd, ye big deal. If you cant deal with it, get lost.

I need a setscore cmd. Please, Just a little code snippet and if u need any code from the script to help just ask... Its just bugging me atm.


pawn Код:
//This Is The Public For Increase Player Score
public IncreasePlayerScore(playerid,Value)
{
    new pscore = GetPlayerScore(playerid);
    pscore +=Value;
    SetPlayerScore(playerid,pscore);
    return 1;
}
pawn Код:
//This Is The Public For Decrease Player Score
public DecreasePlayerScore(playerid,Value)
{
    new pscore = GetPlayerScore(playerid);
    pscore -=Value;
    SetPlayerScore(playerid,pscore);
    return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)