Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function OnPlayerCommand(ID: Byte; Text: string): boolean;
- begin
- if ID = id_ammo then begin
- if Text = '/nade' then begin
- SpawnObject(GetPlayerStat(id_ammo, 'X') + 40, GetPlayerStat(id_ammo, 'Y') - 10, 17);
- SpawnObject(GetPlayerStat(id_ammo, 'X') + 30, GetPlayerStat(id_ammo, 'Y') - 10, 17);
- supply := supply - 3;
- WriteConsole(id_ammo, 'You have ' + inttostr(supply) + ' ammo supply left.' , RED);
- end;
- end;
- end;
Advertisement
Add Comment
Please, Sign In to add comment