17.05.2012, 14:37
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.
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;
}