0 Members and 1 Guest are viewing this topic.
procedure OnPlayerKill(Killer, Victim: byte;Weapon: string); begin if Killer = Victim then begin writeConsole(Killer, 'you cant kill yourself for money you silly bear', RGB(0, 255, 255)); end else begin money[Killer] := money[Killer]+100; writeConsole(Killer, 'You just got $100 your money is now: $' + inttostr(money[Killer]), RGB(0, 255, 255)); end; end;
You could just have a /give x instead of /give 100 and all that stuff just by adding 1 variable and setting that variable GetPiece(Text, ' ', 1);
corl45 , u shood think about relasing some login system so the money can be saved when u come back, also, u can make your account when u feel free and set password withouth any problem, and then the script would be GREAT, now is just AWESOME
procedure OnPlayerKill(Killer, Victim: byte;Weapon: string); begin if Killer = Victim then begin writeConsole(Killer, 'Your money is now: $' + inttostr(money[Killer]), RGB(0, 255, 255)); end else if (Killer <>Victim) and (GetPlayerStat(Killer,'team') <> GetPlayerStat(Victim,'team')) then begin money[Killer] := money[Killer]+300; writeConsole(Killer, 'You just got $300 your money is now: $' + inttostr(money[Killer]), RGB(0, 255, 255)); end; end;