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);
GivePlayerMoney(playerid, PlayerAcc[playerid][Score]);
Remove this line
Код:
GivePlayerMoney(playerid, PlayerAcc[playerid][Score]); |
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;
}