28.06.2014, 08:52
Код:
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);