SA-MP Forums Archive
Remove 1$=1Score - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Remove 1$=1Score (/showthread.php?tid=522583)



Remove 1$=1Score - PowerF - 28.06.2014

hey guys.

i download gamemode awesome stunt paradise.
and in there 1$=1Score
how do i remove it?


+REP if Can Help Me

example if you havr 45K$ your score is 45K


Re: Remove 1$=1Score - PrivatioBoni - 28.06.2014

Control+F "SetPlayerScore" and Control+F "GivePlayerMoney" and show some instances where these two coexist in the same area of code.


Re: Remove 1$=1Score - PowerF - 28.06.2014

Код:
public pUpdate()
{
	new str[256], zone[MAX_ZONE_NAME];
	foreach(Player, i)
	{
		SetPlayerScore(i, GetPlayerMoney(i));
		GetPlayer2DZone(i, zone, MAX_ZONE_NAME);
		format(str, sizeof(str), "~w~Location:~n~%s", zone);
		TextDrawSetString(Locate[i], str);
	}
	return 1;
Код:
		SetPlayerScore(playerid, GetPlayerScore(playerid) + 10);
Код:
		if(ServerInfo[AutoLog] == 1)
		{
			if((!strcmp(ip, PlayerAcc[playerid][Ip], true)) && (ServerInfo[AutoLog] == 1))
			{
	            INI_ParseFile(Path(playerid),"loadaccount_user", .bExtra = true, .extra = playerid);
				GivePlayerMoney(playerid, PlayerAcc[playerid][Score]);
	            SendClientMessage(playerid, COLOR_YELLOW, "Success: You've automatically successfully login to your account");
		        PlayerAcc[playerid][Log] = 1;
				return 1;
Код:
      GivePlayerMoney(playerid, -1);
    }
    else return SendClientMessage(playerid, COLOR_RED, "The Server didn't take your score, Because you don't have score");
	return 1;
Код:
GivePlayerMoney(playerid, 50);
Код:
	        GivePlayerMoney(playerid, PlayerAcc[playerid][Score]);
Код:
                INI_ParseFile(Path(playerid),"loadaccount_user", .bExtra = true, .extra = playerid);
				SetPlayerWantedLevel(playerid, PlayerAcc[playerid][WantedLvl]);
				GivePlayerMoney(playerid, PlayerAcc[playerid][Score]);
	            SendClientMessage(playerid, COLOR_YELLOW, "Success: You've successfully login to your account");
		        PlayerAcc[playerid][Log] = 1;
            }
Код:
				GivePlayerMoney(playerid, PlayerAcc[playerid][Score]);
	            SendClientMessage(playerid, COLOR_YELLOW, "Success: You've successfully login to your account with Security Question");
		        PlayerAcc[playerid][Log] = 1;
Код:
GivePlayerMoney(playerid, PlayerAcc[playerid][Score]);
				            SendClientMessage(playerid, COLOR_YELLOW, "Success: You've automatically successfully login to your account");
					        PlayerAcc[playerid][Log] = 1;
							return 1;
Код:
SendClientMessage(playerid, COLOR_LIME, "Thank you for accepting the Rules!");
	        SendClientMessage(playerid, COLOR_YELLOW, "You receive $1, $1 = 1 Score");
	        GivePlayerMoney(playerid, 1);
	    }
Код:
GivePlayerMoney(playerid, 100000);
Код:
		GivePlayerMoney(id, 1);
Код:
		GivePlayerMoney(id, cash);
:/


Re: Remove 1$=1Score - PowerF - 28.06.2014

No one can help me?


Re: Remove 1$=1Score - Rittik - 28.06.2014

Remove this line
Код:
GivePlayerMoney(playerid, PlayerAcc[playerid][Score]);



Re: Remove 1$=1Score - PowerF - 28.06.2014

Quote:
Originally Posted by Rittik
Посмотреть сообщение
Remove this line
Код:
GivePlayerMoney(playerid, PlayerAcc[playerid][Score]);
Not Work.


Re: Remove 1$=1Score - PowerF - 28.06.2014

No one can help?


Re: Remove 1$=1Score - BroZeus - 28.06.2014

remove this
SetPlayerScore(i, GetPlayerMoney(i));
from the public pUpdate()


Re: Remove 1$=1Score - icra - 28.06.2014

Replace your pUpdate() with:
pawn Код:
public pUpdate()
{
    new str[256], zone[MAX_ZONE_NAME];
    foreach(Player, i)
    {
        GetPlayer2DZone(i, zone, MAX_ZONE_NAME);
        format(str, sizeof(str), "~w~Location:~n~%s", zone);
        TextDrawSetString(Locate[i], str);
    }
    return 1;
}