Guest User

Untitled

a guest
May 12th, 2012
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.43 KB | None | 0 0
  1. function OnPlayerCommand(ID: Byte; Text: string): boolean;
  2. begin
  3.     if ID = id_ammo then begin
  4.         if Text = '/nade' then begin
  5.             SpawnObject(GetPlayerStat(id_ammo, 'X') + 40, GetPlayerStat(id_ammo, 'Y') - 10, 17);
  6.             SpawnObject(GetPlayerStat(id_ammo, 'X') + 30, GetPlayerStat(id_ammo, 'Y') - 10, 17);
  7.             supply := supply - 3;
  8.             WriteConsole(id_ammo, 'You have ' + inttostr(supply) + ' ammo supply left.' , RED);
  9.         end;
  10.     end;
  11. end;
Advertisement
Add Comment
Please, Sign In to add comment